diff --git a/buildscripts/scripts/utils/test_helper.groovy b/buildscripts/scripts/utils/test_helper.groovy index 1d5a68ba790..baa87b338bb 100644 --- a/buildscripts/scripts/utils/test_helper.groovy +++ b/buildscripts/scripts/utils/test_helper.groovy @@ -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."); } }