From 65ab5fdb346bc67ac13dfdfb95c28f2b7c992850 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 29 Sep 2012 19:31:05 -0700 Subject: [PATCH] Ensured failed tests trigger travis fails. Former-commit-id: d513b5b1bae77ab1f4aa9e98ec3622e143048def --- package.json | 2 +- vendor/qunit-clib/qunit-clib.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 6b9dd29e9..1bf39aaf4 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,6 @@ }, "scripts": { "build": "node build", - "test": "node test/test;node test/test-build" + "test": "node test/test && node test/test-build" } } diff --git a/vendor/qunit-clib/qunit-clib.js b/vendor/qunit-clib/qunit-clib.js index e487c03e7..e3edde6be 100644 --- a/vendor/qunit-clib/qunit-clib.js +++ b/vendor/qunit-clib/qunit-clib.js @@ -171,7 +171,7 @@ // exit out of Node.js try { - process.exit(); + process.exit(details.failed); } catch(e) { } }