[Pkg-javascript-commits] [node-acorn-jsx] 219/484: Added exit code 1 for failed test session.

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-acorn-jsx.

commit 3779ed41a4ac7428c655e62d03189185755ce127
Author: Ingvar Stepanyan <me at rreverser.com>
Date:   Thu Jul 24 23:10:53 2014 +0300

    Added exit code 1 for failed test session.
---
 test/run.js | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/test/run.js b/test/run.js
index 8b23031..59d4abc 100644
--- a/test/run.js
+++ b/test/run.js
@@ -11,5 +11,10 @@ function report(state, code, message) {
 var t0 = +new Date;
 driver.runTests(report);
 console.log(testsRun + " tests run in " + (+new Date - t0) + "ms");
-if (failed) console.log(failed + " failures.");
-else console.log("All passed.");
+
+if (failed) {
+  console.log(failed + " failures.");
+  process.exit(1);
+}
+
+console.log("All passed.");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git



More information about the Pkg-javascript-commits mailing list