ttcn3-bts-test: replace subnets during 'make cfg'

Make ttcn3-bts-test work as expected again by replacing the subnets
hardcoded in the confmerge files and Makefile.

Related: OS#5802
Change-Id: I733619f80b4e2456da070649634d3c942bb6d95f
This commit is contained in:
Oliver Smith 2023-01-18 12:20:21 +01:00
parent 2437f4fe8e
commit f71e0f2856
2 changed files with 7 additions and 2 deletions

View File

@ -270,10 +270,13 @@ network_replace_subnet_in_configs() {
"$VOL_BASE_DIR" \
-name '*.cfg' -o \
-name '*.conf' -o \
-name '*.confmerge' -o \
-name '*.inc' -o \
-name '*.scm' -o \
-name '*.sh' -o \
-name '*.txt' -o \
-name '*.yaml' \
-name '*.yaml' -o \
-name 'Makefile' \
)"
if [ -z "$files" ]; then

View File

@ -140,7 +140,9 @@ cp $VOL_BASE_DIR/bts-tester-generic/BTS_Tests.cfg \
$VOL_BASE_DIR/bts-tester-hopping/BTS_Tests.cfg.inc
# (re)generate the configuration files
make cfg
cp Makefile $VOL_BASE_DIR/Makefile
network_replace_subnet_in_configs
make -f $VOL_BASE_DIR/Makefile cfg
mkdir $VOL_BASE_DIR/bsc
cp generic/osmo-bsc.gen.cfg $VOL_BASE_DIR/bsc/