Commit cdfe6666 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Updated test runner scripts

- updated test settings module
- fixed multiple venvs runner
parent a7dd03e9
......@@ -37,23 +37,29 @@
set -e
virtualenv --no-site-packages -ppython2.7 env
virtualenv --no-site-packages -ppython2.6 env
source env/bin/activate
PIP_DOWNLOAD_CACHE=/tmp/.pip_cache
pip install -r requirements.pip
python setup.py install
cd env
# avoid vncauthproxy errors
rm bin/vncauthproxy.py
echo "running django tests..." >&2
synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=settings_test
synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
cd ..
deactivate
virtualenv --no-site-packages -ppython2.7 env
source env/bin/activate
PIP_DOWNLOAD_CACHE=/tmp/.pip_cache
pip install -r requirements.pip
python setup.py install
cd env
# avoid vncauthproxy errors
rm bin/vncauthproxy.py
echo "running django tests..." >&2
synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=settings_test
synnefo-manage test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
cd ..
deactivate
......@@ -38,7 +38,7 @@
set -e
echo "Running Django tests..." >&2
python synnefo/manage.py test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings_test
python synnefo/manage.py test aai admin api db helpdesk invitations logic userdata --settings=synnefo.settings.test
echo "Running snf-ganeti-tools tests..." >&2
PYTHONPATH=snf-ganeti-tools:$PYTHONPATH ./snf-ganeti-tools/test/synnefo.ganeti_unittest.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment