0001-don-t-assume-presence-of-optional-data-in-test-resul.patch
merge-junit-results.py | ||
---|---|---|
36 | 36 |
for file_name in xml_files: |
37 | 37 |
tree = ET.parse(file_name) |
38 | 38 |
test_suite = tree.getroot() |
39 |
failures += int(test_suite.attrib['failures'])
|
|
40 |
tests += int(test_suite.attrib['tests'])
|
|
41 |
errors += int(test_suite.attrib['errors'])
|
|
42 |
time += float(test_suite.attrib['time'])
|
|
39 |
failures += int(test_suite.attrib.get('failures', '0'))
|
|
40 |
tests += int(test_suite.attrib.get('tests', '0'))
|
|
41 |
errors += int(test_suite.attrib.get('errors', '0'))
|
|
42 |
time += float(test_suite.attrib.get('time', '0.'))
|
|
43 | 43 |
name = test_suite.attrib.get('name', '') |
44 | 44 |
for child in test_suite.getchildren(): |
45 | 45 |
child.attrib['classname'] = '%s-%s' % (name, child.attrib.get('classname', '')) |
46 |
- |