fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29340 )
Change subject: fixup: bsc: Add testscase & infra to validate Osmux support
BTS<->BSC
......................................................................
fixup: bsc: Add testscase & infra to validate Osmux support BTS<->BSC
The VTY command 'osmux (on|off|only)' was added to osmo-bsc.git recently,
and thus is not available in -latest yet. Use it conditionally.
Change-Id: Id501d3f4b5eb18b096d8baffcb5f38e583f7a3d8
Fixes: [1] I6e82eb9d995de988b812001e1c4cf6923509de66
---
M bsc/BSC_Tests.ttcn
1 file changed, 11 insertions(+), 7 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/40/29340/1
diff --git a/bsc/BSC_Tests.ttcn b/bsc/BSC_Tests.ttcn
index d4a7b20..c68807d 100644
--- a/bsc/BSC_Tests.ttcn
+++ b/bsc/BSC_Tests.ttcn
@@ -1203,7 +1203,9 @@
activate(as_Tguard());
f_init_vty("VirtMSC");
- f_vty_allow_osmux_cn(g_osmux_enabled_cn);
+ if (Misc_Helpers.f_osmo_repo_is("nightly")) {
+ f_vty_allow_osmux_cn(g_osmux_enabled_cn);
+ }
var my_BooleanList allow_attach := { false, false, false };
f_init_statsd("VirtMSC", vc_STATSD, mp_test_ip, mp_bsc_statsd_port);
@@ -1273,13 +1275,15 @@
f_wait_oml(bts_idx, "connected", 5.0);
/* Set up BTS with VTY commands: */
- f_vty_enter_cfg_bts(BSCVTY, bts_idx);
- if (g_osmux_enabled_bts) {
- f_vty_transceive(BSCVTY, "osmux on");
- } else {
- f_vty_transceive(BSCVTY, "osmux off");
+ if (Misc_Helpers.f_osmo_repo_is("nightly")) {
+ f_vty_enter_cfg_bts(BSCVTY, bts_idx);
+ if (g_osmux_enabled_bts) {
+ f_vty_transceive(BSCVTY, "osmux on");
+ } else {
+ f_vty_transceive(BSCVTY, "osmux off");
+ }
+ f_vty_transceive(BSCVTY, "end");
}
- f_vty_transceive(BSCVTY, "end");
}
function f_init_bts_and_check_sysinfo(integer bts_idx := 0,
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/29340
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id501d3f4b5eb18b096d8baffcb5f38e583f7a3d8
Gerrit-Change-Number: 29340
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange