summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xci/verify-chef.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/verify-chef.sh b/ci/verify-chef.sh
index 1e384c7018..7d7ce08608 100755
--- a/ci/verify-chef.sh
+++ b/ci/verify-chef.sh
@@ -86,9 +86,10 @@ if [ ! -f "Gemfile.lock" ]; then
exit 1
fi
-CHEF_FIPS=0
-if [ $PIPELINE_NAME='chef-fips'];
-then
+unset CHEF_FIPS
+if [ $PIPELINE_NAME="chef-fips" ]; then
+ echo "Setting fips mode"
CHEF_FIPS=1
+ export CHEF_FIPS
fi
sudo env PATH=$PATH TERM=xterm CHEF_FIPS=$CHEF_FIPS bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o $WORKSPACE/test.xml -f documentation spec/functional spec/unit