mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
Print output even when test failed.
This commit is contained in:
parent
69ee336840
commit
f632797bc8
1 changed files with 7 additions and 1 deletions
|
@ -27,7 +27,13 @@ def check_output_test(deno_exe_filename):
|
|||
expected_out = f.read()
|
||||
cmd = [deno_exe_filename, script_abs]
|
||||
print " ".join(cmd)
|
||||
try:
|
||||
actual_out = subprocess.check_output(cmd, universal_newlines=True)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print "Got non-zero exit code. Output:"
|
||||
print e.output
|
||||
sys.exit(1)
|
||||
|
||||
if expected_out != actual_out:
|
||||
print "Expected output does not match actual."
|
||||
print "Expected: " + expected_out
|
||||
|
|
Loading…
Reference in a new issue