diff options
author | John Keiser <john@johnkeiser.com> | 2016-04-19 09:05:59 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2016-04-19 11:38:26 -0700 |
commit | 0ce002d47405c0178b1016a8d803e13e5cfd823e (patch) | |
tree | 53f021322cdf9e864f700abf478da66027ccb1f5 /tasks/bin | |
parent | 02ec1e15c6ca5166161e2a1fb33d8d8ffefa3dc5 (diff) | |
download | chef-0ce002d47405c0178b1016a8d803e13e5cfd823e.tar.gz |
Re-add activesupport testsjk/activesupport-tests
Diffstat (limited to 'tasks/bin')
-rwxr-xr-x | tasks/bin/run_chef_tests | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tasks/bin/run_chef_tests b/tasks/bin/run_chef_tests index 567c6a9587..ea5c5beeff 100755 --- a/tasks/bin/run_chef_tests +++ b/tasks/bin/run_chef_tests @@ -5,7 +5,13 @@ set -evx echo --color > .rspec echo -fp >> .rspec + sudo sed -i -e 's/^Defaults\tsecure_path.*$//' /etc/sudoers; -sudo -E $(which bundle) exec rake spec; -bundle exec rake style; -bundle exec bundle-audit check --update; +# If we have any args, just run the given command +if [ -n "$1" ]; then + sudo -E $(which bundle) exec $@; +else + sudo -E $(which bundle) exec rake spec; + bundle exec rake style; + bundle exec bundle-audit check --update; +fi |