This is an automated email from the ASF dual-hosted git repository.
claude pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/creadur-rat.git
The following commit(s) were added to refs/heads/master by this push:
new 34397bd2 RAT-475: Disable test on GHA windows/8 (#542)
34397bd2 is described below
commit 34397bd284fb43e8e5bc76f0ab19a030220ebb67
Author: P. Ottlinger <[email protected]>
AuthorDate: Sun Oct 5 23:16:35 2025 +0200
RAT-475: Disable test on GHA windows/8 (#542)
---
.../test/java/org/apache/rat/anttasks/ReportOptionTest.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git
a/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
b/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
index 997cdf82..4b03a2b2 100644
---
a/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
+++
b/apache-rat-tasks/src/test/java/org/apache/rat/anttasks/ReportOptionTest.java
@@ -24,6 +24,7 @@ import java.util.Locale;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.commons.cli.Option;
+import org.apache.commons.lang3.SystemUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.apache.rat.test.AbstractConfigurationOptionsProvider;
@@ -58,8 +59,11 @@ public class ReportOptionTest {
static ReportConfiguration reportConfiguration;
- static boolean isGitHubLinux() {
- return System.getenv("GITHUB_ACTION") != null &&
System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("linux");
+ static boolean isGitHubLinuxOrWindowsWithJava8() {
+ return System.getenv("GITHUB_ACTION") != null &&
+
(System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("linux") ||
+
(System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("windows")
&& SystemUtils.IS_JAVA_1_8)
+ );
}
@AfterAll
@@ -69,7 +73,7 @@ public class ReportOptionTest {
@ParameterizedTest
@ArgumentsSource(AntOptionsProvider.class)
- @DisabledIf("isGitHubLinux")
+ @DisabledIf("isGitHubLinuxOrWindowsWithJava8")
public void testOptionsUpdateConfig(String name,
OptionCollectionTest.OptionTest test) {
DefaultLog.getInstance().info("Running " + name);
try {