Skip to content

Commit

Permalink
Merge pull request quarkusio#37820 from zakkak/2023-12-18-opt-out-fro…
Browse files Browse the repository at this point in the history
…m-metrics-it

Introduce env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS
  • Loading branch information
zakkak authored Dec 19, 2023
2 parents 2c3d944 + 21f055a commit 4d07a91
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public void verifyImageMetrics() {
}

public void verifyImageMetrics(String propertiesFileName) {
/*
* Allow users to skip this kind of tests by setting env variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS to true
*/
boolean skipVerifyImageMetrics = Boolean.parseBoolean(System.getenv("QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS"));
Assumptions.assumeFalse(skipVerifyImageMetrics,
"Environment variable QUARKUS_NATIVE_IT_SKIP_VERIFY_IMAGE_METRICS is set. Skipping image metrics verification.");

Properties properties = getProperties(propertiesFileName);

properties.forEach((key, value) -> {
Expand Down

0 comments on commit 4d07a91

Please sign in to comment.