summaryrefslogtreecommitdiffstats
path: root/bsc
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-11-13 15:24:06 +0100
committerStefan Sperling <ssperling@sysmocom.de>2018-11-15 13:02:20 +0000
commitcff13563cf43db2f9891c119ca37f3311f49f2b2 (patch)
treef200fd848ad1ee09c0373eecfda92851936e66e5 /bsc
parenta5302c8151d1da2e43ed52efc0544d70bffab911 (diff)
attempt to fix a race condition in BSC test's f_ts_dyn_mode_get
Add two helper functions which retry a VTY command until the result matches a regular expression or a configurable timeout expires. Use these functions in BSC test's f_ts_dyn_mode_get, which has seen sporadic failures due to a race condition during channel reconfiguration, in order to hopefully close this race. Change-Id: I308ddb06e440c165fe1e73fe2c1fb78be2e1d510 Related: OS#3690
Diffstat (limited to 'bsc')
-rw-r--r--bsc/BSC_Tests.ttcn3
1 files changed, 1 insertions, 2 deletions
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index e06f496..21ec0ff 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -2761,8 +2761,7 @@ private function f_ts_dyn_mode_get(integer bts_nr, integer trx_nr, integer ts_nr
runs on test_CT return charstring {
var charstring cmd, resp;
cmd := "show timeslot "&int2str(bts_nr)&" "&int2str(trx_nr)&" "&int2str(ts_nr);
- resp := f_vty_transceive_ret(BSCVTY, cmd);
- return regexp(resp, "*\((*)\)*", 0);
+ return f_vty_transceive_match_regexp_retry(BSCVTY, cmd, "*\((*)\)*", 0, 4, 1.0);
}
private function f_ts_dyn_mode_assert(integer bts_nr, integer trx_nr, integer ts_nr,