Commit b7cea990 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

resiliencytest: double the size of log outputted in the test result

See !138
parent 49a04dec
Pipeline #39224 failed with stage
in 0 seconds
......@@ -268,7 +268,7 @@ def runUnitTest():
error_count = 1
test_duration = time.time() - start_time
max_size = 4096
max_size = 8192
fsize = os.stat(fname).st_size
with open(fname) as f:
if fsize <= max_size:
......@@ -276,10 +276,10 @@ def runUnitTest():
else:
# Read only 2048 bytes from the file. The whole
# file will be available on the server.
stdout = f.read(2048)
stdout = f.read(4096)
stdout += "\n[...] File truncated\n"
f.seek(0, os.SEEK_END)
f.seek(f.tell() - 2048, os.SEEK_SET)
f.seek(f.tell() - 4096, os.SEEK_SET)
stdout += f.read()
test_line.stop(stdout=stdout,
......
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