aboutsummaryrefslogtreecommitdiffstats
path: root/ttcn3-bts-test
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-08-14 01:01:37 +0700
committerlaforge <laforge@osmocom.org>2020-08-13 19:27:39 +0000
commit149de2822d7bc6d64a2cc4516b8cde77fb1f21ea (patch)
tree1e5d2d0e18fa6caab898120f0f897106a7430832 /ttcn3-bts-test
parenta21c4f2fac534fab22edaf74a8731adc69d89bb1 (diff)
ttcn3-bts-test/fh: fix: properly rename classnames
Not only append ':hopping' to classnames equal 'BTS_Tests', but also 'BTS_Tests_SMSCB' and 'BTS_Tests_LAPDm', so they would not shadow non-hopping test cases in the test results analyzer. Change-Id: Ie6ed7844c2d0dfd839181bce971506284da03d28 Related: SYS#4868, OS#4546
Diffstat (limited to 'ttcn3-bts-test')
-rwxr-xr-xttcn3-bts-test/jenkins.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/ttcn3-bts-test/jenkins.sh b/ttcn3-bts-test/jenkins.sh
index 0f907ac..b05a335 100755
--- a/ttcn3-bts-test/jenkins.sh
+++ b/ttcn3-bts-test/jenkins.sh
@@ -175,8 +175,11 @@ docker container kill ${BUILD_TAG}-bts
start_bsc
start_bts trx 0
start_testsuite hopping
-# rename the test results, so they appear as 'BTS_Tests:hopping' in Jenkins
-sed -i "s#classname='BTS_Tests'#classname='BTS_Tests:hopping'#g" \
+# append ':hopping' to the classnames,
+# e.g. "classname='BTS_Tests'" => "classname='BTS_Tests:hopping'"
+# e.g. "classname='BTS_Tests_SMSCB'" => "classname='BTS_Tests_SMSCB:hopping'"
+# so the hopping test cases would not interfere with non-hopping ones in Jenkins
+sed -i "s/classname='\([^']\+\)'/classname='\1:hopping'/g" \
$VOL_BASE_DIR/bts-tester-hopping/junit-xml-hopping-*.log
echo Stopping containers