Skip to content

Commit

Permalink
Fix formatting of test failures on python3
Browse files Browse the repository at this point in the history
  • Loading branch information
poggenhans authored and keroe committed Mar 16, 2021
1 parent 0cd62d0 commit 76296c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ def main(argv=sys.argv[1:]):
errors = []
for cmd in args.command:
stream = sys.stderr if not args.redirect_stderr else sys.stdout
proc = subprocess.Popen(cmd + " | tee", cwd=args.working_dir, shell=True, env=env, stderr=subprocess.PIPE)
proc = subprocess.Popen(cmd + " | tee", cwd=args.working_dir, shell=True, env=env, stderr=subprocess.PIPE, universal_newlines=True)
stdout, stderr = proc.communicate()
if stderr:
print(stderr, file=stream)
errors.append(stderr.decode("utf-8"))
errors.append(stderr)
if proc.returncode:
rc = proc.returncode
break
Expand Down

0 comments on commit 76296c3

Please sign in to comment.