]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Hack run_tests.sh to work with single tests again.
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 24 May 2013 19:46:28 +0000 (13:46 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 24 May 2013 19:56:28 +0000 (13:56 -0600)
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

run_tests.sh

index b420d67954b927151a049de0aa381511d7362ced..1661ff76a73bd916ea0f3da034d47d5b8a869c95 100755 (executable)
@@ -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 ]