From ca3e0051e61be67df8411c4c91b0a2e25974eb28 Mon Sep 17 00:00:00 2001 From: Renegade334 Date: Tue, 29 Apr 2025 13:02:07 +0100 Subject: [PATCH] test: prevent extraneous HOSTNAME substitution in test-runner-output --- test/parallel/test-runner-output.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-runner-output.mjs b/test/parallel/test-runner-output.mjs index 8eb622be35c313..4e04a71193e78a 100644 --- a/test/parallel/test-runner-output.mjs +++ b/test/parallel/test-runner-output.mjs @@ -37,7 +37,7 @@ function replaceJunitDuration(str) { return str .replaceAll(/time="[0-9.]+"/g, 'time="*"') .replaceAll(/duration_ms [0-9.]+/g, 'duration_ms *') - .replaceAll(hostname(), 'HOSTNAME') + .replaceAll(`hostname="${hostname()}"`, 'hostname="HOSTNAME"') .replace(stackTraceBasePath, '$3'); }