summaryrefslogtreecommitdiff
path: root/run_tests.sh
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-06-29 07:47:51 -0700
committerVishvananda Ishaya <vishvananda@gmail.com>2011-06-29 07:47:51 -0700
commitc6e220af60079bd2e3f1a8991052b108692a1696 (patch)
tree6b4abd5fbc43833ac555fc10398d9dcb1b4e7da6 /run_tests.sh
parent0bfa9aad9c1f74ca962351d90265e5fb56156841 (diff)
downloadnova-c6e220af60079bd2e3f1a8991052b108692a1696.tar.gz
change the default to recreate the db but allow -n for faster tests
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/run_tests.sh b/run_tests.sh
index 2ea221ae31..ddeb1dc4a0 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