bwruntests: Improve classname in some cases

This commit is contained in:
bluew 2020-01-17 14:17:11 +00:00
parent 454075ed38
commit 504517a5f2

View file

@ -252,8 +252,10 @@ the pyyaml library which is not installed.""",
if args.report_junit:
testcases = []
for p in procresults:
# we can either expect p.name = testsetname:testname
# or p.name = testname
testcase = TestCase(p.name,
classname=p.name,
classname=((p.name).split(':'))[0],
stdout=p.stdout,
stderr=p.stderr,
elapsed_sec=p.time)