Project

General

Profile

Bug #22823

Updated by Brad Hubbard about 6 years ago

On fc27 I have both coverage and pytest installed on the system and this causes problems such as...

<pre>
py27 runtests: commands[0] | coverage run --append --source=ceph_disk /home/brad/working/src/ceph/src/ceph-disk/.tox/py27/bin/py.test -vv /home/brad/working/src/ceph/src/ceph-disk/tests/test_main.py
WARNING:test command found but not installed in testenv
cmd: /usr/bin/coverage
env: /home/brad/working/src/ceph/src/ceph-disk/.tox/py27
Maybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.
No file to run: '/home/brad/working/src/ceph/src/ceph-disk/.tox/py27/bin/py.test'
ERROR: InvocationError: '/usr/bin/coverage run --append --source=ceph_disk /home/brad/working/src/ceph/src/ceph-disk/.tox/py27/bin/py.test -vv /home/brad/working/src/ceph/src/ceph-disk/tests/test_main.py'
</pre>

The fact coverage is a system package causes the warning and pytest being a system package causes 'py.test' to be in a different place than where we expect it.

https://github.com/ceph/ceph/pull/20151

Back