diff options
author | 2015-08-13 19:43:00 +0200 | |
---|---|---|
committer | 2015-08-13 23:49:12 +0200 | |
commit | 4a5a8f311981e33abae1ec8bf75c27bf333aaad2 (patch) | |
tree | d39236c0e3c8d194b9b5cb847863793262e571a6 /tools/run_tests/jobset.py | |
parent | 58d7310fbc291d2afa9cbb100544fc5c96cd3249 (diff) |
Reducing JUnit's report size.
Diffstat (limited to 'tools/run_tests/jobset.py')
-rwxr-xr-x | tools/run_tests/jobset.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index b7e0089269..aa3f4bfb41 100755 --- a/tools/run_tests/jobset.py +++ b/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 |