Created
May 5, 2021 16:08
-
-
Save parthaa/4b8302d4af9a9346322d314148c31053 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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