Manually run test runner for tempest

The tempest tox.ini is going to be changed to use the tempest run
runner, however the CLI is slightly different. To avoid being broken
by the change this commit switches to just using tox as a venv wrapper
and manually calling the test runner inside that venv. This should
isolate us from any changes in the tox.ini and also make how we
execute tests explicit.

Change-Id: I0529c2922242d8ed9c92ef718328e09f3ea9e05b
This commit is contained in:
Matthew Treinish 2016-07-30 12:43:08 -04:00
parent f27bfa3ce1
commit 65eed60135
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177

View File

@ -189,24 +189,24 @@ fi
set +e
# Select what to test:
# Smoke suite
TESTS="smoke"
echo "smoke" > /tmp/openstack/tempest/test-whitelist.txt
# Horizon
TESTS="${TESTS} dashboard"
echo "dashboard" >> /tmp/openstack/tempest/test-whitelist.txt
# Aodh
TESTS="${TESTS} TelemetryAlarming"
echo "TelemetryAlarming" >> /tmp/openstack/tempest/test-whitelist.txt
# Gnocchi
TESTS="${TESTS} gnocchi.tempest"
echo "gnocchi.tempest" >> /tmp/openstack/tempest/test-whitelist.txt
# Ironic
# Note: running all Ironic tests under SSL is not working
# https://bugs.launchpad.net/ironic/+bug/1554237
TESTS="${TESTS} api.baremetal.admin.test_drivers"
echo "api.baremetal.admin.test_drivers" >> /tmp/openstack/tempest/test-whitelist.txt
# Zaqar
TESTS="${TESTS} v2.test_queues.TestManageQueue"
echo "v2.test_queues.TestManageQueue" >> /tmp/openstack/tempest/test-whitelist.txt
# Cinder encrypted volumes
# TODO(emilien) re-enable it when those 2 patches are merged:
@ -217,7 +217,8 @@ TESTS="${TESTS} v2.test_queues.TestManageQueue"
print_header 'Running Tempest'
cd /tmp/openstack/tempest
tox -eall-plugin -- --concurrency=2 $TESTS
tox -eall-plugin --notest
/tmp/openstack/tempest/.tox/all-plugin/bin/tempest run --whitelist_file=/tmp/openstack/tempest/test-whitelist.txt --concurrency=2
RESULT=$?
set -e
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit