Skip to content

Commit

Permalink
Merge pull request #1465 from michalvavrik/feature/disable-cli-versio…
Browse files Browse the repository at this point in the history
…n-check-on-win

Disable QuarkusCLIVersionIT on Windows when tested with Quarkus snapshot as we don't have snapshot CLI on Windows
  • Loading branch information
mjurc authored Oct 7, 2023
2 parents 5b5b82b + 693c419 commit 3e64f9b
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
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;
import io.quarkus.test.scenarios.QuarkusScenario;
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
Expand All @@ -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;
}
}

0 comments on commit 3e64f9b

Please sign in to comment.