Project

General

Profile

Bug #22823

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

Added by Brad Hubbard over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
build
Target version:
-
Start date:
01/29/2018
Due date:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

History

#1 Updated by Brad Hubbard over 1 year ago

  • Description updated (diff)

#2 Updated by Brad Hubbard over 1 year ago

  • Status changed from In Progress to Need Review

#3 Updated by Kefu Chai over 1 year ago

  • Status changed from Need Review to Resolved

Also available in: Atom PDF