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:
Mark Gius
2011-05-26 19:32:36 +00:00
committed by Tarmac

View File

@@ -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))