summaryrefslogtreecommitdiff
path: root/tools/check_output_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/check_output_test.py')
-rwxr-xr-xtools/check_output_test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/check_output_test.py b/tools/check_output_test.py
index af385eb36..7227bb0a6 100755
--- a/tools/check_output_test.py
+++ b/tools/check_output_test.py
@@ -27,7 +27,13 @@ def check_output_test(deno_exe_filename):
expected_out = f.read()
cmd = [deno_exe_filename, script_abs]
print " ".join(cmd)
- actual_out = subprocess.check_output(cmd, universal_newlines=True)
+ 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