Skip to content

Commit

Permalink
Correct output formatting on diagnostic test failure with Python3. mo…
Browse files Browse the repository at this point in the history
  • Loading branch information
nichannah committed Dec 16, 2016
1 parent d68f5cb commit 909593a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/tests/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,14 @@ def force_run(self):
self.has_run = True
except sp.CalledProcessError as e:
ret = e.returncode
print(e.output, file=sys.stderr)
output = e.output
finally:
os.chdir(saved_path)

output = output.decode('utf-8')
if ret:
print(output, file=sys.stderr)

return ret

def parse_available_diags(self, packed=True):
Expand Down

0 comments on commit 909593a

Please sign in to comment.