Skip to content

Commit

Permalink
Merge "enables run_test option to skip integration"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Mar 10, 2012
2 parents 6db0067 + 259d938 commit c373132
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function usage {
echo " -P, --no-pep8 Don't run pep8"
echo " -c, --coverage Generate coverage report"
echo " -h, --help Print this usage message"
echo " -xintegration Ignore all keystoneclient test cases (integration tests)"
echo " --hide-elapsed Don't print the elapsed time for each test along with slow test list"
echo ""
echo "Note: with no options specified, the script will try to run the tests in a virtual environment,"
Expand All @@ -49,6 +50,7 @@ function process_option {
-p|--pep8) just_pep8=1;;
-P|--no-pep8) no_pep8=1;;
-c|--coverage) coverage=1;;
-xintegration) nokeystoneclient=1;;
-*) noseopts="$noseopts $1";;
*) noseargs="$noseargs $1"
esac
Expand All @@ -65,6 +67,7 @@ wrapper=""
just_pep8=0
no_pep8=0
coverage=0
nokeystoneclient=0
recreate_db=1

for arg in "$@"; do
Expand All @@ -76,6 +79,11 @@ if [ $coverage -eq 1 ]; then
noseopts="$noseopts --with-coverage --cover-package=keystone"
fi

if [ $nokeystoneclient -eq 1 ]; then
# disable the integration tests
noseopts="$noseopts -I test_keystoneclient*"
fi

function run_tests {
# Just run the test suites in current environment
${wrapper} $NOSETESTS 2> run_tests.log
Expand Down

0 comments on commit c373132

Please sign in to comment.