Changes the run_tests.sh and /tools/install_venv.py scripts to be more user-friendly and not depend on PIP while not in the virtual environment. Running run_tests.sh should not just work out of the box on all systems supporting easy_install...
This commit is contained in:
@@ -6,8 +6,7 @@ with_venv=tools/with_venv.sh
|
||||
if [ -e ${venv} ]; then
|
||||
${with_venv} python run_tests.py $@
|
||||
else
|
||||
echo "You need to install the Nova virtualenv before you can run this."
|
||||
echo ""
|
||||
echo "Please run tools/install_venv.py"
|
||||
exit 1
|
||||
echo "No virtual environment found...creating one"
|
||||
python tools/install_venv.py
|
||||
${with_venv} python run_tests.py $@
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user