Project

General

Profile

Actions

Bug #22823

closed

sitepackages=True causes problems on Fedora when some packages are already installed

Added by Brad Hubbard about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

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

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'

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

Actions #1

Updated by Brad Hubbard about 6 years ago

  • Description updated (diff)
Actions #2

Updated by Brad Hubbard about 6 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Kefu Chai about 6 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF