ttcn3-{pcu,bts}-test: use PCUIFv9 for 'latest' images

Change-Id: I6f072e4db07fd6907b91925549edcf62d9c93fb7
Related: I9350c4a54434c3d46ce9424f382ca0057e58d053
Related: SYS#4868, SYS#4915
This commit is contained in:
Vadim Yanitskiy 2020-09-22 02:00:24 +07:00
parent 15855072ba
commit 0e2a3d6bb1
2 changed files with 14 additions and 4 deletions

View File

@ -114,11 +114,14 @@ cp oml/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-oml/
mkdir $VOL_BASE_DIR/bts-tester-hopping
cp fh/BTS_Tests.cfg $VOL_BASE_DIR/bts-tester-hopping/
# Work around for a bug in osmo-bts when all transceivers use IPAC_PROTO_RSL_TRX0.
# Enables patching of IPA stream ID. TODO: remove as soon as we make a new release.
# TODO: revisit this section every time we tag a new release
if [ "$IMAGE_SUFFIX" = "latest" ]; then
sed "s/RSL_Emulation.mp_rslem_patch_ipa_cid := false/RSL_Emulation.mp_rslem_patch_ipa_cid := true/g" -i \
"$VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg"
# Work around for a bug in osmo-bts causing all transceivers to use IPAC_PROTO_RSL_TRX0
sed "s/RSL_Emulation.mp_rslem_patch_ipa_cid := false/RSL_Emulation.mp_rslem_patch_ipa_cid := true/g" \
-i "$VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg"
# PCUIFv10 is not yet supported in the latest release
sed "/\[MODULE_PARAMETERS\]/ a PCUIF_Types.mp_pcuif_version := 9;" \
-i "$VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg"
fi
cp $VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg \

View File

@ -19,6 +19,13 @@ cp osmo-pcu.cfg $VOL_BASE_DIR/pcu/
mkdir $VOL_BASE_DIR/unix
# TODO: revisit this section every time we tag a new release
if [ "$IMAGE_SUFFIX" = "latest" ]; then
# PCUIFv10 is not yet supported in the latest release
sed "/\[MODULE_PARAMETERS\]/ a PCUIF_Types.mp_pcuif_version := 9;" \
-i "$VOL_BASE_DIR/pcu-tester/PCU_Tests.cfg"
fi
echo Starting container with PCU
docker run --rm \
$(docker_network_params $SUBNET 101) \