diff options
author | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2013-02-14 16:22:12 -0500 |
---|---|---|
committer | Matthew Treinish <treinish@linux.vnet.ibm.com> | 2013-02-14 16:22:12 -0500 |
commit | b05b7b73ab104a4926bcb63b512d0f657a663cfe (patch) | |
tree | 4841fa91265d43cd8ab08a6249657e4c16164d5c | |
parent | dbdd6945d72fdc1719f88c92d961f20eccd5d01d (diff) | |
download | nova-b05b7b73ab104a4926bcb63b512d0f657a663cfe.tar.gz nova-b05b7b73ab104a4926bcb63b512d0f657a663cfe.tar.xz nova-b05b7b73ab104a4926bcb63b512d0f657a663cfe.zip |
Add an update option to run_tests.sh
This commit adds an update option to run_tests.sh. This option
is used to rerun install_venv.py on an already installed venv.
This will then just update out of date packages with pip.
Change-Id: Iac065f71a64a6a7f7f2ee000ee01be9f78af6754
-rwxr-xr-x | run_tests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/run_tests.sh b/run_tests.sh index 1f269fbfe..63b1f38be 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -12,6 +12,7 @@ function usage { 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 " -f, --force Force a clean re-build of the virtual environment. Useful when dependencies have been added." + echo " -u, --update Update the virtual environment with any newer package versions" echo " -p, --pep8 Just run PEP8 and HACKING compliance check" echo " -P, --no-pep8 Don't run static code checks" echo " -c, --coverage Generate coverage report" @@ -42,6 +43,7 @@ function process_options { -r|--recreate-db) recreate_db=1;; -n|--no-recreate-db) recreate_db=0;; -f|--force) force=1;; + -u|--update) update=1;; -p|--pep8) just_pep8=1;; -P|--no-pep8) no_pep8=1;; -c|--coverage) coverage=1;; @@ -80,6 +82,7 @@ just_pep8=0 no_pep8=0 coverage=0 recreate_db=1 +update=0 LANG=en_US.UTF-8 LANGUAGE=en_US:en @@ -198,6 +201,10 @@ then echo "Cleaning virtualenv..." rm -rf ${venv} fi + if [ $update -eq 1 ]; then + echo "Updating virtualenv..." + python tools/install_venv.py $installvenvopts + fi if [ -e ${venv} ]; then wrapper="${with_venv}" else |