Commit 49a04dec authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

resiliencytest: fix seek in python3

See !138
parent 2d9ee01d
......@@ -278,7 +278,8 @@ def runUnitTest():
# file will be available on the server.
stdout = f.read(2048)
stdout += "\n[...] File truncated\n"
f.seek(-2048, os.SEEK_END)
f.seek(0, os.SEEK_END)
f.seek(f.tell() - 2048, 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