Skip to content

Commit 29958c4

Browse files
authored
Tweak test output path normalization edge cases (#96090) (#96131)
Fixes #96079
1 parent d869b47 commit 29958c4

File tree

1 file changed

+1
-0
lines changed
  • build-tools/src/testFixtures/java/org/elasticsearch/gradle/internal/test

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static String normalizeString(String input, File projectRootDir) {
2424
.map(it -> it.replaceAll("\\d+\\.\\d\\ds", "0.00s"))
2525
.map(it -> it.replaceAll(cannonicalNormalizedPathPrefix, "."))
2626
.map(it -> it.replaceAll(normalizedPathPrefix, "."))
27+
.map(it -> it.replaceAll("file:/./", "file:./"))
2728
.map(it -> it.replaceAll("Gradle Test Executor \\d", "Gradle Test Executor 1"))
2829
.collect(Collectors.joining("\n"));
2930
} catch (IOException e) {

0 commit comments

Comments
 (0)