Add tox job for serial testr
This commit adds a new tox job to run tempest using testr serially.
This is intended to be used for development as an alternative to
using nose while we are debugging race conditions with parallel testr.
This commit also adds another wrapper shell script so that we can run
this tox job with the colorizer script and print the slowest tests at
the end.
Optionally if you'd like to run a subset of tempest (not what runs in
the gate) you can directly call tools/pretty_tox_serial.sh with the
regex filter as the arguments.
Change-Id: I6c69bc25ebaef7df1e2389ea2c7e0ef4ca5ec2aa
diff --git a/tox.ini b/tox.ini
index 93a53ac..7eae948 100644
--- a/tox.ini
+++ b/tox.ini
@@ -26,6 +26,12 @@
commands =
nosetests --logging-format '%(asctime)-15s %(message)s' --with-xunit --xunit-file=nosetests-full.xml -sv tempest/api tempest/scenario tempest/thirdparty tempest/cli
+[testenv:testr-serial]
+sitepackages = True
+setenv = VIRTUAL_ENV={envdir}
+commands =
+ sh tools/pretty_tox_serial.sh '{posargs} tempest.api tempest.scenario tempest.thirdparty tempest.cli'
+
[testenv:testr-full]
sitepackages = True
setenv = VIRTUAL_ENV={envdir}