summaryrefslogtreecommitdiffstats
path: root/tests/auto/testlib/selftests/generate_expected_output.py
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-22 01:38:42 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2020-07-24 00:51:54 +0200
commit67c877562b18ea5c591d2884d2b14f7bf3a39149 (patch)
treeefac919ee2f72dacb1df53896754d501640890a2 /tests/auto/testlib/selftests/generate_expected_output.py
parentc70d693378b8110c09fdd18d7a4a22e8bd1b98d9 (diff)
testlib: Output JUnitXML attributes in right order
The attributes are, like the elements, maintained in reverse order in the underlying QTestCoreList, so we need to iterate them backwards when printing out the resulting XML to reflect the order they were added. This results in e.g.: <testcase name="passingBenchmark" result="pass"> Instead of: <testcase result="pass" name="passingBenchmark"> Change-Id: Ic2eeab8de05ffedd0c41977358d5b40ff77878b1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'tests/auto/testlib/selftests/generate_expected_output.py')
-rwxr-xr-xtests/auto/testlib/selftests/generate_expected_output.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/testlib/selftests/generate_expected_output.py b/tests/auto/testlib/selftests/generate_expected_output.py
index b5bc6c1e3c..4c26132706 100755
--- a/tests/auto/testlib/selftests/generate_expected_output.py
+++ b/tests/auto/testlib/selftests/generate_expected_output.py
@@ -102,7 +102,7 @@ class Cleaner (object):
# Build details:
(r'(Config: Using QtTest library).*', r'\1'), # txt
(r'( *<QtBuild)>[^<]+</QtBuild>', r'\1/>'), # xml, lightxml
- (r'(<property value=")[^"]+(" name="QtBuild"/>)', r'\1\2'), # junitxml
+ (r'(<property name="QtBuild" value=")[^"]+"', r'\1"'), # junitxml
# Line numbers in source files:
(r'(ASSERT: ("|&quot;).*("|&quot;) in file .*, line) \d+', r'\1 0'), # lightxml
(r'(Loc: \[[^[\]()]+)\(\d+\)', r'\1(0)'), # txt