You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2024/12/23 14:02:16 UTC

(sling-slingfeature-maven-plugin) branch master updated: SLING-12596 - JarDecompressorTest.testWithEmbeddedJar fails on Jenkins/Windows after upgrading to Parent 62 (#92)

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new f9efb75  SLING-12596 - JarDecompressorTest.testWithEmbeddedJar fails on Jenkins/Windows after upgrading to Parent 62 (#92)
f9efb75 is described below

commit f9efb75c4524f4b949f4d1fd420274210ef23404
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Mon Dec 23 15:02:12 2024 +0100

    SLING-12596 - JarDecompressorTest.testWithEmbeddedJar fails on Jenkins/Windows after upgrading to Parent 62 (#92)
    
    Disable problematic test on Windows
---
 .../org/apache/sling/feature/maven/mojos/JarDecompressorTest.java   | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/java/org/apache/sling/feature/maven/mojos/JarDecompressorTest.java b/src/test/java/org/apache/sling/feature/maven/mojos/JarDecompressorTest.java
index 4137026..ab7f5ec 100644
--- a/src/test/java/org/apache/sling/feature/maven/mojos/JarDecompressorTest.java
+++ b/src/test/java/org/apache/sling/feature/maven/mojos/JarDecompressorTest.java
@@ -26,6 +26,7 @@ import java.io.InputStream;
 import java.io.OutputStream;
 import java.nio.file.Files;
 import java.util.HashMap;
+import java.util.Locale;
 import java.util.Map;
 import java.util.jar.JarEntry;
 import java.util.jar.JarInputStream;
@@ -36,6 +37,7 @@ import org.junit.Test;
 import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertTrue;
+import static org.junit.Assume.assumeFalse;
 
 public class JarDecompressorTest {
     @Test
@@ -73,6 +75,10 @@ public class JarDecompressorTest {
 
     @Test
     public void testJarWithEmbeddedJar() throws Exception {
+
+        // SLING-12596
+        assumeFalse(System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("win"));
+
         File cj = new File(
                 getClass().getResource("/repository/compressed-embedded.jar").getFile());
         File uj = Files.createTempFile(getClass().getSimpleName(), "embedded-uncompressed.jar")