Commit c3c42faa authored by Stefan Behnel's avatar Stefan Behnel

write XML results before printing test results to make it more likely that we...

write XML results before printing test results to make it more likely that we get a test result dump also on later crashes or hangs
parent a5856e3c
......@@ -361,6 +361,11 @@ class XMLTestRunner(TextTestRunner):
stop_time = time.time()
time_taken = stop_time - start_time
# Generate reports
self.stream.writeln()
self.stream.writeln('Generating XML reports...')
result.generate_reports(self)
# Print results
result.printErrors()
self.stream.writeln(result.separator2)
......@@ -383,9 +388,4 @@ class XMLTestRunner(TextTestRunner):
else:
self.stream.writeln("OK")
# Generate reports
self.stream.writeln()
self.stream.writeln('Generating XML reports...')
result.generate_reports(self)
return result
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment