Fixed "tox -e py27" warning message

tox shows warning message as follow.

py27 runtests: PYTHONHASHSEED='3460558810'
py27 runtests: commands[0] | find . -type f -name *.py[c|o] -delete
WARNING:test command found but not installed in testenv
  cmd: /usr/bin/find
  env: /home/vikram/myData/work/openstack/neutron-dynamic-routing/.tox/py27
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
py27 runtests: commands[1] | find . -type d -name __pycache__ -delete
WARNING:test command found but not installed in testenv
  cmd: /usr/bin/find
  env: /home/vikram/myData/work/openstack/neutron-dynamic-routing/.tox/py27
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
py27 runtests: commands[2] | sh tools/pretty_tox.sh

It seems that "find" command needs full path in tox.ini

Partial-Bug: #1560003
Change-Id: Iafd0ea9fc6a79859313c004845003c7e71c2c216
This commit is contained in:
vikram.choudhary 2016-08-16 13:31:53 +05:30
parent 38fe630f30
commit 294b615702
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ install_command =
{toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh
whitelist_externals =
find
sh
commands =
find . -type f -name "*.py[c|o]" -delete
find . -type d -name "__pycache__" -delete