Merge "Make tests output more verbose"

This commit is contained in:
Zuul 2018-04-09 07:06:59 +00:00 committed by Gerrit Code Review
commit dd6f79e3d1

@ -18,20 +18,21 @@ if [ -n "$subset" ]; then
project="${subset%%.*}" project="${subset%%.*}"
if [ $project == "horizon" ]; then if [ $project == "horizon" ]; then
$testcommand --settings=horizon.test.settings $posargs $testcommand --settings=horizon.test.settings --verbosity 2 $posargs
elif [ $project == "openstack_dashboard" ]; then elif [ $project == "openstack_dashboard" ]; then
$testcommand --settings=openstack_dashboard.test.settings \ $testcommand --settings=openstack_dashboard.test.settings \
--exclude-dir=openstack_dashboard/test/integration_tests $posargs --exclude-dir=openstack_dashboard/test/integration_tests --verbosity 2 $posargs
elif [ $project == "openstack_auth" ]; then elif [ $project == "openstack_auth" ]; then
$testcommand --settings=openstack_auth.tests.settings $posargs $testcommand --settings=openstack_auth.tests.settings $posargs
fi fi
else else
$testcommand horizon --settings=horizon.test.settings $posargs $testcommand horizon --settings=horizon.test.settings --verbosity 2 $posargs
horizon_tests=$? horizon_tests=$?
$testcommand openstack_dashboard --settings=openstack_dashboard.test.settings \ $testcommand openstack_dashboard --settings=openstack_dashboard.test.settings \
--exclude-dir=openstack_dashboard/test/integration_tests $posargs --exclude-dir=openstack_dashboard/test/integration_tests --verbosity 2 $posargs
openstack_dashboard_tests=$? openstack_dashboard_tests=$?
$testcommand openstack_auth --settings=openstack_auth.tests.settings $posargs $testcommand openstack_auth --settings=openstack_auth.tests.settings \
--verbosity 2 $posargs
auth_tests=$? auth_tests=$?
# we have to tell tox if either of these test runs failed # we have to tell tox if either of these test runs failed
if [[ $horizon_tests != 0 || $openstack_dashboard_tests != 0 || \ if [[ $horizon_tests != 0 || $openstack_dashboard_tests != 0 || \