aboutsummaryrefslogtreecommitdiffstats
path: root/msc
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-05-31 17:51:20 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-31 20:42:41 +0000
commit3dd33bc8f6d7adfa407ab05a768c3278bfa5c00c (patch)
tree962287a9ce854db5b98c838b47cab29a7f3c1952 /msc
parent2f01fbd040bc9ad4e4f9a5073ad27cb329c249da (diff)
msc: Enable/disable osmux always based on test
Initially it was thought safe to only enable it since the osmux test was at the end, but actually IU tests run after it, and those don't expect osmux to be enabled. This way we also always match osmo-msc osmux state with whatever the test expects (and sets through f_init()). Change-Id: I8fb48af7d37f1a2391a39c19f5ec5064cd5869d2
Diffstat (limited to 'msc')
-rw-r--r--msc/MSC_Tests.ttcn6
1 files changed, 5 insertions, 1 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn
index 16f7b9bb..40e0720a 100644
--- a/msc/MSC_Tests.ttcn
+++ b/msc/MSC_Tests.ttcn
@@ -330,6 +330,11 @@ function f_init(integer num_bsc := 1, boolean sgsap := false, boolean gsup := tr
f_vty_config(MSCVTY, "network", "authentication optional");
f_vty_config(MSCVTY, "msc", "assign-tmsi");
f_vty_config(MSCVTY, "network", "encryption a5 0");
+ if (osmux) {
+ f_vty_config(MSCVTY, "msc", "osmux on");
+ } else {
+ f_vty_config(MSCVTY, "msc", "osmux off");
+ }
}
/* Initialize for a direct connection to BSSAP. This function is an alternative
@@ -1746,7 +1751,6 @@ testcase TC_lu_and_mt_call() runs on MTC_CT {
testcase TC_lu_and_mt_call_osmux() runs on MTC_CT {
var BSC_ConnHdlr vc_conn;
f_init(1, false, true, true);
- f_vty_config(MSCVTY, "msc", "osmux on");
vc_conn := f_start_handler(refers(f_tc_lu_and_mt_call), 39, 0, true, true);
vc_conn.done;