diff options
-rwxr-xr-x | test/run-tests.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run-tests.js b/test/run-tests.js index 0568c6a7..a3268dc3 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -7,8 +7,10 @@ var assert = require("assert"); var sys = require("util"); var tests_dir = path.dirname(module.filename); +var failures = 0; run_compress_tests(); +if (failures) process.exit(1); /* -----[ utils ]----- */ @@ -83,6 +85,7 @@ function run_compress_tests() { output: output, expected: expect }); + failures++; } } var tests = parse_test(path.resolve(dir, file)); |