Skip to content

Commit

Permalink
Fix random-ish newlines in planemo test output
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Aug 16, 2024
1 parent 61e2021 commit 79057a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planemo/galaxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,13 @@ def read_log(ctx, log_path, e: threading.Event):
log_fh = open(log_path, "a+")
log_lines = log_fh.read()
if log_lines:
ctx.log(log_lines)
ctx.log(log_lines.rstrip())
e.wait(1)
finally:
if log_fh:
log_lines = log_fh.read()
if log_lines:
ctx.log(log_lines)
ctx.log(log_lines.rstrip())
log_fh.close()


Expand Down

0 comments on commit 79057a0

Please sign in to comment.