Stop using tox

This commit abandons the tox usage in run_tests.sh script. At this
point tox is only being used to create a venv and not run any tests.
The primary advantage tox gives you is maintaining separate test
environments by handling the venv management, job commands, etc. Since
we are only using it venvs, tox is a bit heavyweight when we can just
call virtualenv and pip directly. This just make it more explict so
people can see exactly what is happening when we run tempest. It also
continues the work to decouple running the tests in CI from the tempest
repo itself.

Change-Id: I57ded07a2fd2cde4d532f65e68bacbf62547cf1f
This commit is contained in:
Matthew Treinish 2016-09-13 11:38:31 -04:00
parent cce709e9e3
commit 73642a916d
No known key found for this signature in database
GPG Key ID: FD12A0F214C9E177

View File

@ -217,12 +217,13 @@ echo "v2.test_queues.TestManageQueue" >> /tmp/openstack/tempest/test-whitelist.t
print_header 'Running Tempest'
cd /tmp/openstack/tempest
tox -eall-plugin --notest
/tmp/openstack/tempest/.tox/all-plugin/bin/tempest run --whitelist_file=/tmp/openstack/tempest/test-whitelist.txt --concurrency=2
virtualenv --system-site-packages run_tempest
run_tempest/bin/pip install -U .
run_tempest/bin/tempest run --whitelist_file=/tmp/openstack/tempest/test-whitelist.txt --concurrency=2
RESULT=$?
set -e
testr last --subunit > /tmp/openstack/tempest/testrepository.subunit
/tmp/openstack/tempest/.tox/all-plugin/bin/tempest list-plugins
run_tempest/bin/tempest list-plugins
print_header 'SELinux Alerts (Tempest)'
catch_selinux_alerts