← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1220234] Re: *.pyc should be removed before run test in tox.ini

 

** Also affects: designate
   Importance: Undecided
       Status: New

** Changed in: designate
     Assignee: (unassigned) => sonu (sonu-bhumca11)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1220234

Title:
  *.pyc should be removed before run test in tox.ini

Status in Designate:
  New
Status in OpenStack Identity (keystone):
  Invalid
Status in neutron:
  Invalid

Bug description:
  reproduce:

  $ git rm neutron/scheduler/l3_agent_scheduler.py
  $ tox -epy27 test_agent_scheduler
  ...
  Ran 486 (+116) tests in 63.833s (-82.301s)
  PASSED (id=225)
  ...
    py27: commands succeeded

  the  *.pyc will be removed before run test in run_tests.sh, so
  ./run_tests.sh will fail, but tox doesn't do the same, so it still
  success

  after add line after tox.ini#L44
  /usr/bin/find . -type f -name "*.pyc" -delete

  $ tox -epy27 test_agent_scheduler
  ...
  ImportError: No module named l3_agent_scheduler
  ...
  Ran 488 (+481) tests in 10.087s (+9.636s)
  FAILED (id=231, failures=245 (+238))
  ...
  ERROR:   py27: commands failed

  the absolute path of find may cause problem, but if i don't specify it, there is a warning:
  WARNING:test command found but not installed in testenv
    cmd: /usr/bin/find
    env: /home/zqfan/openstack/neutron/.tox/py27
  Maybe forgot to specify a dependency?

  but tox still performs in the correct way

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