Fix run_tests.sh to return non-zero exit status when test cases fail. run_tests.sh currently only returns the exit status of the openstack-dashboard tests, ignoring the exit status of the django-openstack tests.
This commit is contained in:
commit
1bd02e3a62
@ -5,8 +5,14 @@ python bootstrap.py
|
||||
bin/buildout
|
||||
bin/test
|
||||
|
||||
OPENSTACK_RESULT=$?
|
||||
|
||||
cd ../openstack-dashboard
|
||||
python tools/install_venv.py
|
||||
|
||||
cp local/local_settings.py.example local/local_settings.py
|
||||
tools/with_venv.sh dashboard/manage.py test
|
||||
|
||||
DASHBOARD_RESULT=$?
|
||||
|
||||
exit $(($OPENSTACK_RESULT || $DASHBOARD_RESULT))
|
||||
|
Loading…
x
Reference in New Issue
Block a user