You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2024/12/03 12:31:51 UTC
(maven-jlink-plugin) 01/01: skip Unixz dependent test on Windows
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch windows
in repository https://gitbox.apache.org/repos/asf/maven-jlink-plugin.git
commit fb85e0e80fd25d3f0dc11955e818a373bebbcf38
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Tue Dec 3 07:31:43 2024 -0500
skip Unixz dependent test on Windows
---
src/test/java/org/apache/maven/plugins/jlink/JLinkMojoTest.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/test/java/org/apache/maven/plugins/jlink/JLinkMojoTest.java b/src/test/java/org/apache/maven/plugins/jlink/JLinkMojoTest.java
index d66678c..58ddc85 100644
--- a/src/test/java/org/apache/maven/plugins/jlink/JLinkMojoTest.java
+++ b/src/test/java/org/apache/maven/plugins/jlink/JLinkMojoTest.java
@@ -23,6 +23,7 @@ import java.lang.reflect.Field;
import java.util.List;
import org.apache.maven.shared.utils.cli.Commandline;
+import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
@@ -46,6 +47,10 @@ public class JLinkMojoTest {
@Test
void single_quotes_shell_command() throws Exception {
+
+ Assumptions.assumeFalse("windows".equals(System.getProperty("os.name")));
+ // TODO add a test for Windows
+
// given
JLinkMojo mojo = new JLinkMojo();
Field stripDebug = mojo.getClass().getDeclaredField("stripDebug");