Unverified Commit a35edcfb authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Preserve Playwright traces on every failure (#93366)

parent fb776884
...@@ -825,10 +825,9 @@ ${ENDGROUP}`) ...@@ -825,10 +825,9 @@ ${ENDGROUP}`)
return reject(err) return reject(err)
} }
// If environment is CI and if this test execution is failed after retry, preserve test traces // preserve test traces to upload into github actions artifacts for debugging purposes
// to upload into github actions artifacts for debugging purpose
const shouldPreserveTracesOutput = const shouldPreserveTracesOutput =
(process.env.CI && isRetry && isChildExitWithNonZero) || (process.env.CI && isChildExitWithNonZero) ||
process.env.PRESERVE_TRACES_OUTPUT process.env.PRESERVE_TRACES_OUTPUT
if (!shouldPreserveTracesOutput) { if (!shouldPreserveTracesOutput) {
await fsp await fsp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment