summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-06-29 16:18:55 +0000
committerTarmac <>2011-06-29 16:18:55 +0000
commit463766fbffff00e333ded0123bc1bc45513db061 (patch)
treec4c7e8319cd31a1f601308a992c523cc0a501182
parent4a3ef4367db23e8495e9c1dc4a49b5c66a6c763e (diff)
parentc6e220af60079bd2e3f1a8991052b108692a1696 (diff)
downloadnova-463766fbffff00e333ded0123bc1bc45513db061.tar.gz
nova-463766fbffff00e333ded0123bc1bc45513db061.tar.xz
nova-463766fbffff00e333ded0123bc1bc45513db061.zip
Deprecate -r for run_tests.sh and adds -n, switching the default back to recreate.
-rwxr-xr-xrun_tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 2ea221ae3..ddeb1dc4a 100755
--- a/run_tests.sh
+++ b/run_tests.sh
@@ -6,7 +6,8 @@ function usage {
echo ""
echo " -V, --virtual-env Always use virtualenv. Install automatically if not present"
echo " -N, --no-virtual-env Don't use virtualenv. Run tests in local environment"
- echo " -r, --recreate-db Recreate the test database."
+ echo " -r, --recreate-db Recreate the test database (deprecated, as this is now the default)."
+ echo " -n, --no-recreate-db Don't recreate the test database."
echo " -x, --stop Stop running tests after the first error or failure."
echo " -f, --force Force a clean re-build of the virtual environment. Useful when dependencies have been added."
echo " -p, --pep8 Just run pep8"
@@ -25,6 +26,7 @@ function process_option {
-V|--virtual-env) let always_venv=1; let never_venv=0;;
-N|--no-virtual-env) let always_venv=0; let never_venv=1;;
-r|--recreate-db) let recreate_db=1;;
+ -n|--no-recreate-db) let recreate_db=0;;
-f|--force) let force=1;;
-p|--pep8) let just_pep8=1;;
-*) noseopts="$noseopts $1";;
@@ -41,7 +43,7 @@ noseargs=
noseopts=
wrapper=""
just_pep8=0
-recreate_db=0
+recreate_db=1
for arg in "$@"; do
process_option $arg