Skip to content

Commit

Permalink
test spawnWaitFor
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed May 10, 2024
1 parent e6e720e commit e3702ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ export function spawnWaitFor(command: string, regex: RegExp, timeout = 600000) {
});
}
});
proc.on('close', () => {
proc.on('close', (code, signal) => {
console.log('code,signal', code, signal);
console.log('output', output);

clearTimeout(clock);
reject(Error(output));
});
Expand Down

0 comments on commit e3702ba

Please sign in to comment.