Forward child process exit code when exiting test script

Signed-off-by: Antonio Scandurra <as-cii@github.com>
This commit is contained in:
Nathan Sobo 2016-07-29 11:41:32 -06:00 committed by Antonio Scandurra
parent 8f265218df
commit c47c380ff8

View File

@ -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)