improve tests (#3408)

This commit is contained in:
Alex Lam S.L
2019-05-12 09:44:02 +08:00
committed by GitHub
parent 54cb678055
commit 45fbdbc2dc
2 changed files with 13 additions and 4 deletions

View File

@@ -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();
});
})();