Get tests working on node that requires shell arg

These silently fail on Windows after a recent change in node.js
This commit is contained in:
Daniel Imms
2024-07-02 11:04:04 -07:00
parent 2edc65baaa
commit 4b6c8f1fe4
3 changed files with 16 additions and 5 deletions
+5 -2
View File
@@ -40,12 +40,15 @@ async function run() {
console.log(`\n\x1b[32m${command}\x1b[0m`, args);
const run = cp.spawnSync(command, args, {
cwd: path.resolve(__dirname, '..'),
shell: true,
stdio: 'inherit'
}
);
if (run.status) {
process.exit(run.status);
if (run.error) {
console.error(run.error);
}
process.exit(run.status ?? -1);
}
}
run();