Skip to content

Instantly share code, notes, and snippets.

@parthaa
Created March 21, 2014 14:36
Show Gist options
  • Save parthaa/9687638 to your computer and use it in GitHub Desktop.
Save parthaa/9687638 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
FOREMAN_PATH="/foreman"
pushd .
cd $FOREMAN_PATH
if [[ -n $1 ]]
then
KATELLO_PATH='/katello'
RAKE_PATH=`bundle show rake`
ruby -I"lib:test:${KATELLO_PATH}/test:${KATELLO_PATH}/spec" -I"${RAKE_PATH}/lib" \
"${RAKE_PATH}/lib/rake/rake_test_loader.rb" "../katello/"$@ ${KATELLO_PATH}/test/katello_test_runner.rb
else
bundle exec rake test:katello
fi
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment