coin: Generate JUnit result files
The JUnit format is easier to feed to tools that don't support the native Qt Test XML format. Pick-to: 6.2 Change-Id: Iad677b98953275fd70765acb039f1fb3d0f44dab Reviewed-by: Simo Fält <simo.falt@qt.io>
This commit is contained in:
parent
e0ad2cee55
commit
c7ddaa9f58
@ -20,8 +20,13 @@ instructions:
|
|||||||
|
|
||||||
file=os.path.basename(sys.argv[1])
|
file=os.path.basename(sys.argv[1])
|
||||||
timestamp = str(round(time.time() * 1000))
|
timestamp = str(round(time.time() * 1000))
|
||||||
results_file = home + "/work/testresults/" + file +"-" + timestamp + ".xml,xml"
|
results_path = home + "/work/testresults/"
|
||||||
testargs = ["-o", results_file, "-o", "-,txt"]
|
results_base = results_path + file + "-" + timestamp
|
||||||
|
testargs = [
|
||||||
|
"-o", results_base + ".xml,xml",
|
||||||
|
"-o", results_base + ".junitxml,junitxml",
|
||||||
|
"-o", "-,txt"
|
||||||
|
]
|
||||||
if re.search("testlib.selftests.tst_selftests", sys.argv[1]):
|
if re.search("testlib.selftests.tst_selftests", sys.argv[1]):
|
||||||
testargs = []
|
testargs = []
|
||||||
exit(subprocess.call([sys.argv[1]] + testargs))
|
exit(subprocess.call([sys.argv[1]] + testargs))
|
||||||
|
Loading…
Reference in New Issue
Block a user