Reducing JUnit's report size.

pull/2919/head
Nicolas "Pixel" Noble 10 years ago
parent 58d7310fbc
commit 4a5a8f3119
  1. 4
      tools/run_tests/jobset.py

@ -194,6 +194,10 @@ class Job(object):
self._tempfile.seek(0)
stdout = self._tempfile.read()
filtered_stdout = filter(lambda x: x in string.printable, stdout.decode(errors='ignore'))
# TODO: looks like jenkins master is slow because parsing the junit results XMLs is not
# implemented efficiently. This is an experiment to workaround the issue by making sure
# results.xml file is small enough.
filtered_stdout = filtered_stdout[-128:]
if self._xml_test is not None:
self._xml_test.set('time', str(elapsed))
ET.SubElement(self._xml_test, 'system-out').text = filtered_stdout

Loading…
Cancel
Save