convert test runner to tox
We now have tox definitions for the test runs for tempest, which lets us control the gate commands from tempest. Use tox to run tempest in the gate now. Part of bp:tempest-repo-restructure Change-Id: Idc775c3caff0284da8d7f735d76b3e50e39bb365
This commit is contained in:
@@ -211,16 +211,14 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then
|
||||
fi
|
||||
if [[ "$DEVSTACK_GATE_TEMPEST_FULL" -eq "1" ]]; then
|
||||
echo "Running tempest full test suite"
|
||||
sudo -H -u stack NOSE_XUNIT_FILE=nosetests-full.xml nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv tempest
|
||||
echo "Running tempest/cli test suite"
|
||||
sudo -H -u stack NOSE_XUNIT_FILE=nosetests-cli.xml nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv cli
|
||||
sudo -H -u stack tox -efull
|
||||
else
|
||||
echo "Running tempest smoke tests"
|
||||
sudo -H -u stack NOSE_XUNIT_FILE=nosetests-smoke.xml nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit -sv --attr=type=smoke tempest
|
||||
sudo -H -u stack tox -esmoke
|
||||
fi
|
||||
if [[ "$DEVSTACK_GATE_TEMPEST_COVERAGE" -eq "1" ]] ; then
|
||||
echo "Generating coverage report"
|
||||
sudo -H -u stack python -m tools/tempest_coverage -c report --html -o $BASE/new/tempest/coverage-report
|
||||
sudo -H -u stack tox -ecoverage
|
||||
fi
|
||||
else
|
||||
# Jenkins expects at least one nosetests file. If we're not running
|
||||
|
||||
Reference in New Issue
Block a user