testrunner: Use absolute path for JUnit XML result file

Amends 210020412c

Change-Id: Ibe3bbe0bab4370936f82a915ba59a7a89c292ea0
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
This commit is contained in:
Tor Arne Vestbø 2022-09-13 14:58:33 +02:00
parent 11c089c67b
commit 8c7bf85192

View File

@ -251,11 +251,12 @@ def run_full_test(test_basename, testargs: List[str], output_dir: str,
# and text to stdout.
if not no_extra_args:
filename_base = unique_filename(test_basename)
results_files.append(
os.path.join(output_dir, f"{filename_base}.xml"))
output_testargs.extend(["-o", results_files[0] + ",xml"])
output_testargs.extend(["-o", f"{filename_base}.junit.xml,junitxml"])
output_testargs.extend(["-o", "-,txt"])
xml_output_file = os.path.join(output_dir, f"{filename_base}.xml")
results_files.append(xml_output_file)
output_testargs.extend([
"-o", xml_output_file + ",xml",
"-o", os.path.join(output_dir, f"{filename_base}.junit.xml") + ",junitxml",
"-o", "-,txt"])
proc = run_test(testargs + specific_extra_args + output_testargs,
timeout=timeout)