Skip to content

Commit 8813ceb

Browse files
committed
Cant use stdio inherit and stash a result away
1 parent 9a29577 commit 8813ceb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/run-sequence.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ const cp = require("child_process");
55
* @param {[string, string[]][]} tasks
66
* @param {cp.SpawnSyncOptions} opts
77
*/
8-
function runSequence(tasks, opts = { timeout: 100000, shell: true, stdio: "inherit" }) {
8+
function runSequence(tasks, opts = { timeout: 100000, shell: true }) {
99
let lastResult;
1010
for (const task of tasks) {
1111
console.log(`${task[0]} ${task[1].join(" ")}`);
1212
const result = cp.spawnSync(task[0], task[1], opts);
1313
if (result.status !== 0) throw new Error(`${task[0]} ${task[1].join(" ")} failed: ${result.stderr && result.stderr.toString()}`);
14+
console.log(result.stdout && result.stdout.toString());
1415
lastResult = result;
1516
}
1617
return lastResult && lastResult.stdout && lastResult.stdout.toString();

0 commit comments

Comments
 (0)