From 2be0b9c39c20bd3d0144abf84232f1b2043ca6e1 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Fri, 24 May 2013 13:46:28 -0600 Subject: [PATCH] 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 --- run_tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ] -- 2.45.2