Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak Rajamohan committed Dec 10, 2021
1 parent b398038 commit 1a70942
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unit-test/spawnTask.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports.runChildProcess = function (scriptName, options) {
});
childProcess.on('close', code => {
console.log(`child process exited with code ${code}`);
resolve();
resolve(code);
});
});
};
7 changes: 6 additions & 1 deletion unit-test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const executeTests = async function () {

console.log('Starting to run tests in ', buildPath, new Date());

await runChildProcess('test', { cwd: workingDir, env: envVars });
const code = await runChildProcess('test', { cwd: workingDir, env: envVars });

if (code !== '0') {
process.exitCode = code;
process.exit(process.exitCode);
}

console.log('Completed running tests', new Date());
} catch (e) {
Expand Down

0 comments on commit 1a70942

Please sign in to comment.