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 <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
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)