Intercept child process exit and exit from the main process as well.

This commit is contained in:
Michel Kaporin 2017-05-29 13:04:06 +02:00
parent 7223e4bfe4
commit a41a0c007f

View file

@ -77,6 +77,9 @@ function runTests() {
if (err) throw new Error(`Could not write stderr to errors.log with the following error: ${err}`);
});
});
proc.on('exit', (code) => {
process.exit(code);
});
}
function cleanOrClone(repo, dir) {