fix(workflow): distinguish watch completion from timeout and cancellation
This commit is contained in:
1 parent
fac81b08e8
commit
98ceb85a5c
9 files changed
+187
-124
No files matched your search
@@ -94,19 +94,19 @@ export async function handleWorkflowTailCommand(
|
||||
return {
|
||||
stdout: printJson(report, runtime.outputOptions),
|
||||
stderr: "",
|
||||
exitCode: report.hasFailures ? 1 : 0,
|
||||
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
|
||||
};
|
||||
}
|
||||
return {
|
||||
stdout: runtime.writeStdout ? "" : outputChunks.join(""),
|
||||
stderr: "",
|
||||
exitCode: report.hasFailures ? 1 : 0,
|
||||
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
stdout: runtime.writeStdout ? "" : outputChunks.join(""),
|
||||
stderr: "",
|
||||
exitCode: report.hasFailures ? 1 : 0,
|
||||
exitCode: report.hasFailures || report.timedOut || report.cancelled ? 1 : 0,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user