From c47c380ff8fa6f04964e1151a714fbcd65a4d392 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Fri, 29 Jul 2016 11:41:32 -0600 Subject: [PATCH] Forward child process exit code when exiting test script Signed-off-by: Antonio Scandurra --- build/test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/test.js b/build/test.js index 36b13e3a5..046d0bb05 100755 --- a/build/test.js +++ b/build/test.js @@ -19,4 +19,5 @@ const testArguments = [ ] console.log('Executing core specs...'.bold.green) -childProcess.spawnSync(executablePath, testArguments, {stdio: 'inherit'}) +const exitStatus = childProcess.spawnSync(executablePath, testArguments, {stdio: 'inherit'}).status +process.exit(exitStatus)