summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-10-02 06:15:28 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-10-02 06:16:19 (GMT)
commit9da1c16c90135da866287b11a1cbc60fbd96ee75 (patch)
tree59b776b3d1b559f5831425e213a6eb18a3a45869
parentbca13e37efa6e4c7c46dd77e643dce3ae3ec39e3 (diff)
downloaddjango-mellon-wip/latest-pytest.zip
django-mellon-wip/latest-pytest.tar.gz
django-mellon-wip/latest-pytest.tar.bz2
build: adapt merge-junit-results to latest pytest/3 <testsuites> elementwip/latest-pytest
-rwxr-xr-xmerge-junit-results.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/merge-junit-results.py b/merge-junit-results.py
index a50bc7f..45f558f 100755
--- a/merge-junit-results.py
+++ b/merge-junit-results.py
@@ -36,6 +36,8 @@ def merge_results(xml_files):
for file_name in xml_files:
tree = ET.parse(file_name)
test_suite = tree.getroot()
+ if test_suite.tag == 'testsuites':
+ test_suite = test_suite.getchildren()[0]
failures += int(test_suite.attrib['failures'])
tests += int(test_suite.attrib['tests'])
errors += int(test_suite.attrib['errors'])