test: (fixes #2829) test.py produces malformed XML results
This commit is contained in:
10
test.py
10
test.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user