tox -epy27 succeeds when no tests are run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
tox -epy27 succeeds when no tests are run.
If running 'tox -epy27 thisisabadregex'
$ tox -epy27 thisisabadregex
GLOB sdist-make: ~/nova/setup.py
py27 inst-nodeps: ~/nova/
py27 runtests: commands[0] | python tools/patch_
py27 runtests: commands[1] | python setup.py testr --slowest --testr-
running testr
running=
OS_STDERR_
OS_TEST_
${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --list
PASSED (id=385)
Slowest Tests
_______
py27: commands succeeded
congratulations :)
While technically correct this is misleading and I cannot imagine a case where running no tests is the expected behavior
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
I've seen this too. I've ran tox with some changes to the db migration scripts for DB2 support and I had a bug which made them completely bomb out and tox never reported a problem, it just said that no tests ran. When I used run_tests.sh it correctly showed the failures.