Create discovery option for stress tests
Adds a decorator @stresstest which automatically sets the type
attr to "stress". It uses the testtools discover functionality to
automatically discover stress tests out of all tempest test.
It is possible to filter stress test with a given attribute type.
For instance to filter out only smoke tests that have a stress test
attribute.
blueprint: stress-tests
Change-Id: I8acf0b608cb500c2679a36a4a00ca4fa14668fad
diff --git a/tox.ini b/tox.ini
index dc8980d..5445cd5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -45,7 +45,7 @@
sitepackages = True
setenv = VIRTUAL_ENV={envdir}
commands =
- python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
+ python -m tempest/stress/run_stress -a -d 3600
[testenv:venv]
commands = {posargs}