From 45fbdbc2dcede8115687ae02619854ed974c7d1f Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 12 May 2019 09:44:02 +0800 Subject: improve tests (#3408) --- test/release/run.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/release/run.js') diff --git a/test/release/run.js b/test/release/run.js index 7b4755dc..5dc85193 100644 --- a/test/release/run.js +++ b/test/release/run.js @@ -6,10 +6,10 @@ module.exports = function(tasks) { var args = tasks.shift(); console.log(); console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m"); - var result = child_process.spawn(process.argv[0], args, { + child_process.spawn(process.argv[0], args, { stdio: [ "ignore", 1, 2 ] }).on("exit", function(code) { - if (code != 0) process.exit(code); + if (code) process.exit(code); next(); }); })(); -- cgit v1.2.3