< prev index next >

test/jdk/tools/jpackage/helpers/jdk/jpackage/test/PackageTest.java

Print this page
rev 57261 : 8235482: [TESTBUG] PackageType LINUX_RPM should be excluded for jpackage tests on debian systems
Reviewed-by:

@@ -34,10 +34,11 @@
 import java.util.function.Supplier;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
 import jdk.jpackage.test.Functional.ThrowingConsumer;
 import jdk.incubator.jpackage.internal.AppImageFile;
+import jdk.incubator.jpackage.internal.LinuxDebBundler;
 import static jdk.jpackage.test.PackageType.*;
 
 /**
  * Instance of PackageTest is for configuring and running a single jpackage
  * command to produce platform specific package bundle.

@@ -57,10 +58,13 @@
      * function calls.
      */
     public PackageTest() {
         action = DEFAULT_ACTION;
         excludeTypes = new HashSet<>();
+        if (LinuxDebBundler.isDebian()) {
+            excludeTypes.add(LINUX_RPM);
+        }
         forTypes();
         setExpectedExitCode(0);
         handlers = new HashMap<>();
         namedInitializers = new HashSet<>();
         currentTypes.forEach(v -> handlers.put(v, new Handler(v)));
< prev index next >