Only check jacoco arguments on Linux

This commit is contained in:
Erik C. Thauvin 2025-03-25 12:15:39 -07:00
parent 359e5995f5
commit d053fbfb75
Signed by: erik
GPG key ID: 776702A6A2DA330E
2 changed files with 10 additions and 4 deletions

View file

@ -100,10 +100,13 @@ public class JacocoReportOperationBuild extends Project {
@Override @Override
public void test() throws Exception { public void test() throws Exception {
var os = System.getProperty("os.name");
if (os != null && os.toLowerCase().contains("linux")) {
new ExecOperation() new ExecOperation()
.fromProject(this) .fromProject(this)
.command("scripts/cliargs.sh") .command("scripts/cliargs.sh")
.execute(); .execute();
}
super.test(); super.test();
} }
} }

View file

@ -18,6 +18,8 @@ package rife.bld.extension;
import org.assertj.core.api.AutoCloseableSoftAssertions; import org.assertj.core.api.AutoCloseableSoftAssertions;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledOnOs;
import org.junit.jupiter.api.condition.OS;
import rife.bld.Project; import rife.bld.Project;
import rife.bld.operations.exceptions.ExitStatusException; import rife.bld.operations.exceptions.ExitStatusException;
@ -58,6 +60,7 @@ class JacocoReportOperationTest {
} }
@Test @Test
@EnabledOnOs(OS.LINUX)
void checkAllParamsTest() throws IOException { void checkAllParamsTest() throws IOException {
var supported = List.of("<execfiles>", var supported = List.of("<execfiles>",
"--classfiles", "--classfiles",