diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-07-22 03:01:40 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-07-22 03:50:22 +0200 |
commit | dcaf9b3227f7bd77e14aafe957957df6cfbffb86 (patch) | |
tree | fe0b4071021b499d624812611ec29ace0c07699b /tools/check_output_test.py | |
parent | cc14df427f36f36173c45e22c4e7796f34054e6f (diff) |
Make check_output_test.py tolerate CRLF line endings in test output
Diffstat (limited to 'tools/check_output_test.py')
-rwxr-xr-x | tools/check_output_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/check_output_test.py b/tools/check_output_test.py index c8b01952d..84bc31580 100755 --- a/tools/check_output_test.py +++ b/tools/check_output_test.py @@ -27,9 +27,11 @@ 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) + actual_out = subprocess.check_output(cmd, universal_newlines=True) if expected_out != actual_out: print "Expected output does not match actual." + print "Expected: " + expected_out + print "Actual: " + actual_out sys.exit(1) |