Skip to content

Commit 1f2b261

Browse files
Renegade334RafaelGSS
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 cdb3d01 commit 1f2b261

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
@@ -37,7 +37,7 @@ function replaceJunitDuration(str) {
3737
return str
3838
.replaceAll(/time="[0-9.]+"/g, 'time="*"')
3939
.replaceAll(/duration_ms [0-9.]+/g, 'duration_ms *')
40-
.replaceAll(hostname(), 'HOSTNAME')
40+
.replaceAll(`hostname="${hostname()}"`, 'hostname="HOSTNAME"')
4141
.replace(stackTraceBasePath, '$3');
4242
}
4343

0 commit comments

Comments
 (0)