Skip to content

Commit 42d6683

Browse files
committed
sanitize yarn-node path in output
1 parent ebca423 commit 42d6683

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/testRunner/externalCompileRunner.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ ${sanitizeDockerfileOutput(result.stderr.toString())}`;
208208
return result.replace(/^.*(\] (Starting)|(Finished)).*$/gm, "") // "gulp" task start/end messages (nondeterministic order)
209209
.replace(/^.*(\] . (finished)|(started)).*$/gm, "") // "just" task start/end messages (nondeterministic order)
210210
.replace(/^.*\] Respawned to PID: \d+.*$/gm, "") // PID of child is OS and system-load dependent (likely stableish in a container but still dangerous)
211-
.replace(/\n+/g, "\n");
211+
.replace(/\n+/g, "\n")
212+
.replace(/\/tmp\/yarn--.*?\/node/g, "");
212213
}
213214

214215
function sanitizeTimestamps(result: string): string {

0 commit comments

Comments
 (0)