Skip to content

Commit 56fce66

Browse files
Renegade334marco-ippolito
authored andcommitted
test: prevent extraneous HOSTNAME substitution in test-runner-output
PR-URL: #58076 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Pietro Marchini <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent b6daa34 commit 56fce66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-runner-output.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function replaceJunitDuration(str) {
3232
return str
3333
.replaceAll(/time="[0-9.]+"/g, 'time="*"')
3434
.replaceAll(/duration_ms [0-9.]+/g, 'duration_ms *')
35-
.replaceAll(hostname(), 'HOSTNAME')
35+
.replaceAll(`hostname="${hostname()}"`, 'hostname="HOSTNAME"')
3636
.replace(stackTraceBasePath, '$3');
3737
}
3838

0 commit comments

Comments
 (0)