From a41a0c007ff39cf50a2d3d6bea25516edbe7a08e Mon Sep 17 00:00:00 2001 From: Michel Kaporin Date: Mon, 29 May 2017 13:04:06 +0200 Subject: [PATCH] Intercept child process exit and exit from the main process as well. --- test/smoke/src/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/smoke/src/main.js b/test/smoke/src/main.js index 85e3778d1a7..ef6d65112e9 100644 --- a/test/smoke/src/main.js +++ b/test/smoke/src/main.js @@ -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) {