Skip to content

Instantly share code, notes, and snippets.

@stbenjam
Created December 9, 2014 14:32
Show Gist options
  • Save stbenjam/0f11418c5b6089407952 to your computer and use it in GitHub Desktop.
Save stbenjam/0f11418c5b6089407952 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
SALT_PATH=/home/stbenjam/foreman_salt
if [[ -n $1 ]]
then
RAKE_PATH=`bundle show rake`
ruby -I"lib:test:${SALT_PATH}/test:${SALT_PATH}/spec" -I"${RAKE_PATH}/lib" \
"${RAKE_PATH}/lib/rake/rake_test_loader.rb" $@
else
bundle exec rake test:foreman_salt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment