From 0c39d76e8a2df4789a5c736b9a43e5530b90b5f8 Mon Sep 17 00:00:00 2001 From: Ivan Kolodyazhny Date: Wed, 4 Apr 2018 11:17:25 +0300 Subject: [PATCH] Make tests output more verbose Added '--verbosity 2' to print list of executed and skipped tests to the console. Related blueprint: improve-horizon-testing Change-Id: Ibdc4016bb1f8b7145a78b0f0bfc693741b6a123e --- tools/unit_tests.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/unit_tests.sh b/tools/unit_tests.sh index da2fe24327..2a4fae80c6 100755 --- a/tools/unit_tests.sh +++ b/tools/unit_tests.sh @@ -18,20 +18,21 @@ if [ -n "$subset" ]; then project="${subset%%.*}" if [ $project == "horizon" ]; then - $testcommand --settings=horizon.test.settings $posargs + $testcommand --settings=horizon.test.settings --verbosity 2 $posargs elif [ $project == "openstack_dashboard" ]; then $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 $testcommand --settings=openstack_auth.tests.settings $posargs fi else - $testcommand horizon --settings=horizon.test.settings $posargs + $testcommand horizon --settings=horizon.test.settings --verbosity 2 $posargs horizon_tests=$? $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=$? - $testcommand openstack_auth --settings=openstack_auth.tests.settings $posargs + $testcommand openstack_auth --settings=openstack_auth.tests.settings \ + --verbosity 2 $posargs auth_tests=$? # we have to tell tox if either of these test runs failed if [[ $horizon_tests != 0 || $openstack_dashboard_tests != 0 || \