improve tests (#3405)

This commit is contained in:
Alex Lam S.L
2019-05-11 22:03:41 +08:00
committed by alexlamsl
parent 9fc8cd4076
commit e88c439eac
6 changed files with 140 additions and 92 deletions

16
test/release/run.js Normal file
View File

@@ -0,0 +1,16 @@
var child_process = require("child_process");
module.exports = function(tasks) {
(function next() {
if (!tasks.length) return;
var args = tasks.shift();
console.log();
console.log("\u001B[36m$> " + args.join(" ") + "\u001B[39m");
var result = child_process.spawn(process.argv[0], args, {
stdio: [ "ignore", 1, 2 ]
}).on("exit", function(code) {
if (code != 0) process.exit(code);
next();
});
})();
};