From 693c419a06869188526a17dff3c4931d48915578 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Vav=C5=99=C3=ADk?= Date: Sat, 7 Oct 2023 13:21:15 +0200 Subject: [PATCH] Disable QuarkusCLIVersionIT on Windows with snapshot --- .../io/quarkus/ts/quarkus/cli/QuarkusCliVersionIT.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/QuarkusCliVersionIT.java b/quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/QuarkusCliVersionIT.java index 0cf55687e..05c75155f 100644 --- a/quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/QuarkusCliVersionIT.java +++ b/quarkus-cli/src/test/java/io/quarkus/ts/quarkus/cli/QuarkusCliVersionIT.java @@ -1,11 +1,14 @@ package io.quarkus.ts.quarkus.cli; +import static io.quarkus.test.scenarios.annotations.DisabledOnQuarkusSnapshotCondition.isQuarkusSnapshotVersion; import static org.junit.jupiter.api.Assertions.assertEquals; import jakarta.inject.Inject; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledIf; +import org.junit.jupiter.api.condition.OS; import io.quarkus.builder.Version; import io.quarkus.test.bootstrap.QuarkusCliClient; @@ -13,6 +16,7 @@ import io.quarkus.test.scenarios.annotations.DisabledOnNative; import io.quarkus.test.scenarios.annotations.DisabledOnQuarkusVersion; +@DisabledIf(value = "isQuarkusSnapshotRunOnWindows", disabledReason = "https://github.com/quarkus-qe/quarkus-test-suite/issues/1464") @Tag("QUARKUS-960") @Tag("quarkus-cli") @QuarkusScenario @@ -31,4 +35,8 @@ public void shouldVersionMatchQuarkusVersion() { // Using shortcut assertEquals(Version.getVersion(), cliClient.run("-v").getOutput()); } + + static boolean isQuarkusSnapshotRunOnWindows() { + return isQuarkusSnapshotVersion() && OS.current() == OS.WINDOWS; + } }