Change in docker-playground[master]: ttcn3-bts-test/fh: fix: properly rename classnames

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Aug 13 19:27:40 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/docker-playground/+/19637 )

Change subject: ttcn3-bts-test/fh: fix: properly rename classnames
......................................................................

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
---
M ttcn3-bts-test/jenkins.sh
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  fixeria: Verified



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 @@
 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

-- 
To view, visit https://gerrit.osmocom.org/c/docker-playground/+/19637
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Change-Id: Ie6ed7844c2d0dfd839181bce971506284da03d28
Gerrit-Change-Number: 19637
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200813/34ca7e1d/attachment.htm>


More information about the gerrit-log mailing list