summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-01-27 14:07:23 +0000
committerThom May <thom@may.lt>2016-01-27 14:07:23 +0000
commit58eff3ad063fb44f14d77239085a9be85325235f (patch)
tree4627db9343a0d095453e9c779ebdd678cad0a5b0
parentb7e7f425b27d011d358b17c5f7ba61473dbb3308 (diff)
parent490aee527802ba149b68cb4ead1db2cf73006ec7 (diff)
downloadchef-58eff3ad063fb44f14d77239085a9be85325235f.tar.gz
Merge pull request #4466 from chef/jdm/fix-pipeline
Fix bug in sh script that runs test in jenkins
-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