ttcn3-pcu-test/sns: fix PCUIF version number (follow up patch)

Unfortunately we had to revert [1] because it worked for current master
but not for latest. The mistake here was to change the PCUIF version
number in PCU_Tests.cfg to PCUIF v12. This is indeed the correct version
for current master, but latest still uses v11. Also the change we made in
jenkins-sns only affected 2023q1 builds, it does not affect latest. This
is the reason why the previous patch broke latest.

This follow up patch now copies the approach we already successfully use
with the normal ttcn3-pcu-test / ttcn3-pcu-test-latest. (see also

[1] I0b37f01f4c7bb829053231339e39ab734f4c8cbc

Change-Id: I1f94a0459e35d7b5632c81d7f7e2e60eb0d0229f
Related: OS#6275
This commit is contained in:
Philipp Maier 2023-11-29 10:49:40 +01:00
parent e104fdae7e
commit f4e2d5c1e5
1 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,15 @@ set_pcuif_version() {
if image_suffix_is_2023q1; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 11/PCUIF_Types.mp_pcuif_version := 10/g' $1
# This changes the PCUIF module parameter of the TTCN3 testsuite when the testsuite is
# executed for current master. For latest the PCUIF module parameter must stay at v.11
# since in osmo-pcu-latest PCUIF v.12 is not yet supported. After the next release, PCUIF
# v.12 will be supported in osmo-pcu-latest as well and this function, including the
# PCUIF_Types.mp_pcuif_version setting in the configuration files can be removed.
if image_suffix_is_master; then
sed -i 's/PCUIF_Types.mp_pcuif_version := 11/PCUIF_Types.mp_pcuif_version := 12/g' $1
mkdir $VOL_BASE_DIR/pcu-tester