Skip to content

Instantly share code, notes, and snippets.

@parthaa
Created May 5, 2021 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parthaa/4b8302d4af9a9346322d314148c31053 to your computer and use it in GitHub Desktop.
Save parthaa/4b8302d4af9a9346322d314148c31053 to your computer and use it in GitHub Desktop.
HAMMER_KATELLO_PATH="${HAMMER_KATELLO_PATH:-/home/vagrant/git/hammer-cli-katello}"
pushd .
rm /var/log/hammer/*
FILES=$(find $HAMMER_KATELLO_PATH/test -type f -path "**/*$1*test.rb"|tr '\n' ' ')
cd $HAMMER_KATELLO_PATH
RAKE_PATH=`bundle show rake`
set -x
for fl in $FILES; do
bundle exec ruby -I"lib:lib" -I"$RAKE_PATH/lib" "$RAKE_PATH/lib/rake/rake_test_loader.rb" "test/functional/repository/delete_test.rb" $fl
done
set +x
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment