From: John Griffith Date: Fri, 24 May 2013 19:46:28 +0000 (-0600) Subject: Hack run_tests.sh to work with single tests again. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=2be0b9c39c20bd3d0144abf84232f1b2043ca6e1;p=openstack-build%2Fcinder-build.git Hack run_tests.sh to work with single tests again. Even though we're moving to testr and this will eventually go away, we should maintain our ability to run and debug individual tests until the broader change is released. This just adds some text around the nosetests call to get us back where we were. Fixes bug: 1181996 Change-Id: Id0082ca8954664679430cc602425b1fadd29151b --- diff --git a/run_tests.sh b/run_tests.sh index b420d6795..1661ff76a 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -44,7 +44,7 @@ function process_option { -c|--coverage) coverage=1;; -X|--coverage-xml) coverage_xml=1;; -*) noseopts="$noseopts $1";; - *) noseargs="$noseargs $1" + *) noseargs="--tests ./cinder/tests/$noseargs$1.py" esac } @@ -113,7 +113,6 @@ function run_pep8 { bash -c "${wrapper} flake8 cinder* bin" } - NOSETESTS="nosetests $noseopts $noseargs" if [ $never_venv -eq 0 ]