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:
Sean Dague
2013-05-08 14:13:57 -04:00
parent e9edaa3a21
commit 8fe6db0acc

View File

@@ -211,16 +211,14 @@ if [ "$DEVSTACK_GATE_TEMPEST" -eq "1" ]; then
fi fi
if [[ "$DEVSTACK_GATE_TEMPEST_FULL" -eq "1" ]]; then if [[ "$DEVSTACK_GATE_TEMPEST_FULL" -eq "1" ]]; then
echo "Running tempest full test suite" 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 sudo -H -u stack tox -efull
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
else else
echo "Running tempest smoke tests" 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 fi
if [[ "$DEVSTACK_GATE_TEMPEST_COVERAGE" -eq "1" ]] ; then if [[ "$DEVSTACK_GATE_TEMPEST_COVERAGE" -eq "1" ]] ; then
echo "Generating coverage report" 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 fi
else else
# Jenkins expects at least one nosetests file. If we're not running # Jenkins expects at least one nosetests file. If we're not running