Skip to content

Commit

Permalink
Re-apply suppression of empty lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed Jul 26, 2022
1 parent 6a6d73e commit c210de2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions runner/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ def execute_command(command, timeout=None, stacktrace=False):
line = q.get(timeout=timeout)
while line:
line = q.get(timeout=timeout)
output.append(line)
cmd_log.info(line.rstrip())
if line and not line.isspace():
output.append(line)
cmd_log.info(line.rstrip())
code = process.wait(timeout=timeout)
except (Empty, subprocess.TimeoutExpired):
cmd_log.error(f"{cmd_str} timed out.")
Expand Down

0 comments on commit c210de2

Please sign in to comment.