test: (fixes #2829) test.py produces malformed XML results

This commit is contained in:
Robert Ammon
2018-01-04 13:28:16 -08:00
parent 19593f8c18
commit 5d5f67faa3

10
test.py
View File

@@ -1774,18 +1774,10 @@ def run_tests():
f = open(xml_results_file, 'a')
f.write("<Test>\n")
f.write(" <Name>%s</Name>\n" % job.display_name)
f.write(' <Result>CRASH</Suite>\n')
f.write(' <Result>CRASH</Result>\n')
f.write("</Test>\n")
f.close()
if job.returncode == 2:
f = open(xml_results_file, 'a')
f.write("<Test>\n")
f.write(" <Name>%s</Name>\n" % job.display_name)
f.write(' <Result>VALGR</Result>\n')
f.write("</Test>\n")
f.close()
#
# We have all of the tests run and the results written out. One final
# bit of housekeeping is to wait for all of the threads to close down