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 <[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 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)