Browse Source

Tweak test output path normalization edge cases (#96090)

Fixes #96079
Rene Groeschke 2 years ago
parent
commit
3e248342a9

+ 1 - 0
build-tools/src/testFixtures/java/org/elasticsearch/gradle/internal/test/TestUtils.java

@@ -24,6 +24,7 @@ public class TestUtils {
                 .map(it -> it.replaceAll("\\d+\\.\\d\\ds", "0.00s"))
                 .map(it -> it.replaceAll(cannonicalNormalizedPathPrefix, "."))
                 .map(it -> it.replaceAll(normalizedPathPrefix, "."))
+                .map(it -> it.replaceAll("file:/./", "file:./"))
                 .map(it -> it.replaceAll("Gradle Test Executor \\d", "Gradle Test Executor 1"))
                 .collect(Collectors.joining("\n"));
         } catch (IOException e) {