This is an automated email from the ASF dual-hosted git repository. av pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push: new f1de701a2cd IGNITE-19253 [Missing Tests] check fails on windows agents (#10634) f1de701a2cd is described below commit f1de701a2cd17b73ff297e28ccb506349968d142 Author: Anton Vinogradov <a...@apache.org> AuthorDate: Fri Apr 7 16:13:16 2023 +0300 IGNITE-19253 [Missing Tests] check fails on windows agents (#10634) --- .../tools/surefire/testsuites/OrphanedTestCollection.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/tools/src/main/java/org/apache/ignite/tools/surefire/testsuites/OrphanedTestCollection.java b/modules/tools/src/main/java/org/apache/ignite/tools/surefire/testsuites/OrphanedTestCollection.java index b87d828f878..b2aeb3abd5d 100644 --- a/modules/tools/src/main/java/org/apache/ignite/tools/surefire/testsuites/OrphanedTestCollection.java +++ b/modules/tools/src/main/java/org/apache/ignite/tools/surefire/testsuites/OrphanedTestCollection.java @@ -21,6 +21,7 @@ import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; +import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -95,9 +96,14 @@ public class OrphanedTestCollection { * Path to the common orphaned_tests.txt file. */ private static Path orphanedTestsFilePath() { - return Paths - .get(OrphanedTestCollection.class.getProtectionDomain().getCodeSource().getLocation().getPath()) - .getParent() - .resolve("orphaned_tests.txt"); + try { + return Paths + .get(OrphanedTestCollection.class.getProtectionDomain().getCodeSource().getLocation().toURI()) + .getParent() + .resolve("orphaned_tests.txt"); + } + catch (URISyntaxException e) { + throw new RuntimeException(e); + } } }