Skip to content

Commit

Permalink
test_helper: disable groovy-lint exception check for assert_fips_testing
Browse files Browse the repository at this point in the history
Change-Id: I650a055e2131a63c50c3763ac2baae8fd10dbbeb
  • Loading branch information
okin committed Jan 6, 2025
1 parent 81991ce commit 62bed13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildscripts/scripts/utils/test_helper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ def update_custom_parser(Map config = [:]) {
/// Make sure we are on the correct node for FIPS tests
def assert_fips_testing(use_case, node_labels) {
if (use_case == "fips" && !node_labels.contains("fips")) {
// groovylint-disable-next-line ThrowException
throw new Exception("FIPS testing requested but we're not running on a fips node.");
}
}
Expand Down

0 comments on commit 62bed13

Please sign in to comment.