print less newlines...

This commit is contained in:
Fredrik Eriksson 2019-05-20 20:01:24 +02:00
parent c6e08907e4
commit 0e50791a21
No known key found for this signature in database
GPG Key ID: 8825C73A0FD1502A

View File

@ -150,11 +150,11 @@ def print_runs(runs, clean=True):
print("STDOUT:".format(run)) print("STDOUT:".format(run))
with open(os.path.join(run, 'stdout'), 'r') as f: with open(os.path.join(run, 'stdout'), 'r') as f:
for line in f: for line in f:
print(line) print(line.strip())
print("\nSTDERR:".format(run)) print("\nSTDERR:".format(run))
with open(os.path.join(run, 'stderr'), 'r') as f: with open(os.path.join(run, 'stderr'), 'r') as f:
for line in f: for line in f:
print(line) print(line.strip())
print("\n\n") print("\n\n")
if clean: if clean:
for run in runs: for run in runs: