Only save the last 1000 lines to XML file.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
Tim 'mithro' Ansell 2019-02-06 22:15:28 -08:00
parent ec6be41482
commit 7c5103e7f3
1 changed files with 4 additions and 4 deletions

View File

@ -386,13 +386,13 @@ def main(argv):
tc.name = "Run {}".format(i)
if tc.stdout.startswith('file://'):
pretty = False
with open(tc.stdout[7:]) as fd:
tc.stdout = fd.read()
tc.stdout = "\n".join(
last_lines(open(tc.stdout[7:]), 1000))
if tc.stderr.startswith('file://'):
pretty = False
with open(tc.stderr[7:]) as fd:
tc.stderr = fd.read()
tc.stderr = "\n".join(
last_lines(open(tc.stderr[7:]), 1000))
ts = junit_xml.TestSuite(args.fuzzer, test_cases)
tsfilename = os.path.join(fuzzer_logdir, 'sponge_log.xml')