aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2019-04-18 17:50:52 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2019-04-24 14:55:19 +0200
commitd95f340a01fe7e9fe59f02b6ec4f9d018feb8c75 (patch)
tree6092702e081ac1ca02e8e1f131d9cfe0d79e7514
parent12567e45c2c92be18dea39b0d752e1d6e800dd53 (diff)
BTS_Tests: wait until BTS supplies stable signal
When running tests with real hardware it is important to wait for some time (3 sec. should be enough) before exiting f_init(). This is to ensure that the BTS supplies a stable carrier before the test proceeds. Change-Id: Ib78633a33a15cd40514e15b6ebf9a0a8fb7b9c68 Related: OS#3863
-rw-r--r--bts/BTS_Tests.ttcn5
1 files changed, 5 insertions, 0 deletions
diff --git a/bts/BTS_Tests.ttcn b/bts/BTS_Tests.ttcn
index 68c85fb5..35f51a17 100644
--- a/bts/BTS_Tests.ttcn
+++ b/bts/BTS_Tests.ttcn
@@ -65,6 +65,7 @@ modulepar {
integer mp_timing_offset_256syms_exp := 512;
/* Time to wait for RSL conn from BTS during startup of test */
float mp_ipa_up_timeout := 15.0;
+ float mp_ipa_up_delay := 3.0;
}
type record of RslChannelNr ChannelNrs;
@@ -364,6 +365,10 @@ function f_init(charstring id := "BTS-Test") runs on test_CT {
f_main_trxc_connect();
ret := f_TRXC_transceive(BTS_TRXC, g_bts_trxc_conn_id, valueof(ts_TRXC_FAKE_TIMING(2*256)));
}
+
+ /* Wait some extra time to make sure the BTS emits a stable carrier.
+ * (this is only relevant when running the tests with a physical BTS.) */
+ f_sleep(mp_ipa_up_delay);
}
/* Attach L1CTL to master test_CT (classic tests, non-handler mode) */