Skip to content

Commit

Permalink
need to debug some ci failures
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Sep 5, 2024
1 parent ee5bbf1 commit 5c69919
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/scenarios/helpers/command-watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class CommandWatcher {

async shutdown(): Promise<void> {
if (this.exitCode != null) {
this.maybeEmitLogs();
this.emitLogs();
return;
}

Expand All @@ -120,14 +120,13 @@ export default class CommandWatcher {
});

await this.waitForExit();
this.maybeEmitLogs();
this.emitLogs();
}

private maybeEmitLogs() {
if (this.exitCode !== 0) {
console.error(`CommandWatcher saw non-zero exit, dumping logs:`);
console.error(this.lines.join('\n'));
}
private emitLogs() {
console.log(`CommandWatcher dumping logs:`);
console.log(this.lines.join('\n'));
q;
}

async waitForExit(): Promise<number> {
Expand Down

0 comments on commit 5c69919

Please sign in to comment.