diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-04 17:17:09 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2019-12-04 17:17:09 +0100 |
commit | 436ac6758d4a76cbc8ec36318a33a4f2c5d7837d (patch) | |
tree | 7126ee2f0c59334248e246dd9a962004e5aa46d1 | |
parent | a66f6ebb23716a157ea68d78d6f7b827581dc5ed (diff) |
ttcn3-cpu: Support VTY prompt used in older versions of osmo-pcu
Change-Id: I8cec3da889623915ca46b5eb1b51bc81195accf9
-rw-r--r-- | ttcn3-pcu-test/PCU_Tests.cfg | 2 | ||||
-rwxr-xr-x | ttcn3-pcu-test/jenkins.sh | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ttcn3-pcu-test/PCU_Tests.cfg b/ttcn3-pcu-test/PCU_Tests.cfg index 2502fd2..9520775 100644 --- a/ttcn3-pcu-test/PCU_Tests.cfg +++ b/ttcn3-pcu-test/PCU_Tests.cfg @@ -6,6 +6,7 @@ [TESTPORT_PARAMETERS] *.PCUVTY.CTRL_HOSTNAME := "172.18.13.101" +*.PCUVTY.PROMPT1 := "OsmoPCU> " [MODULE_PARAMETERS] PCU_Tests_RAW.mp_pcu_sock_path := "/data/unix/pcu_bts" @@ -17,6 +18,7 @@ PCU_Tests.mp_nsconfig := { nsvci := 1234, nsei := 1234 } +Osmocom_VTY_Functions.mp_prompt_prefix := "OsmoPCU"; [MAIN_CONTROLLER] diff --git a/ttcn3-pcu-test/jenkins.sh b/ttcn3-pcu-test/jenkins.sh index d4e8be0..4305a8d 100755 --- a/ttcn3-pcu-test/jenkins.sh +++ b/ttcn3-pcu-test/jenkins.sh @@ -13,6 +13,11 @@ network_create 172.18.13.0/24 mkdir $VOL_BASE_DIR/pcu-tester mkdir $VOL_BASE_DIR/pcu-tester/unix cp PCU_Tests.cfg $VOL_BASE_DIR/pcu-tester/ +# Latest release of osmo-pcu (0.7.0) has prompt "Osmo-PCU", while master uses more +# usual osmocom form "OsmoPCU". This can be removed once a new osmo-pcu version is released +if [ "$IMAGE_SUFFIX" = "latest" ]; then + sed "s/OsmoPCU/Osmo-PCU/g" -i $VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg +fi mkdir $VOL_BASE_DIR/pcu mkdir $VOL_BASE_DIR/pcu/unix |