← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1211648] Re: tox -epy27 succeeds when no tests are run

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => kilo-2

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1211648

Title:
  tox -epy27 succeeds when no tests are run

Status in OpenStack Compute (Nova):
  Fix Released

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/.tox/dist/nova-2013.2.a2543.g3f5ad03.zip
  py27 runtests: commands[0] | python tools/patch_tox_venv.py
  py27 runtests: commands[1] | python setup.py testr --slowest --testr-args=thisisabadregex
  running testr
  running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
  OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
  OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
  ${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests --list 
  PASSED (id=385)
  Slowest Tests
  ____________________________________________________________________________________ summary ____________________________________________________________________________________
    py27: commands succeeded
    congratulations :)

  
  While technically correct this is misleading and I cannot imagine a case where running no tests is the expected behavior

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1211648/+subscriptions