]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph-disk: Remove sitepackages=True 20151/head
authorBrad Hubbard <bhubbard@redhat.com>
Mon, 29 Jan 2018 00:13:04 +0000 (10:13 +1000)
committerBrad Hubbard <bhubbard@redhat.com>
Mon, 29 Jan 2018 00:15:03 +0000 (10:15 +1000)
"sitepackages=True" causes issues on systems that may have packages like
"coverage" or "pytest" installed at the system level. We can try just
white listing "prettyprint" which was the driver for the "sitepackages"
blanket change in the first place.

Fixes: http://tracker.ceph.com/issues/22823
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
src/ceph-disk/tox.ini

index c65f52a83d665dece1369b0080ba553a0677e6c1..6c2e17e92b7f0153f37c3576248fc626a0630a2b 100644 (file)
@@ -17,7 +17,7 @@ deps =
   ../ceph-detect-init
 
 [testenv:py27]
-sitepackages=True
+whitelist_externals = prettyprint
 passenv = CEPH_ROOT CEPH_BIN CEPH_LIB CEPH_BUILD_VIRTUALENV
 changedir = {env:CEPH_BUILD_DIR}
 commands = coverage run --append --source=ceph_disk {envbindir}/py.test -vv {toxinidir}/tests/test_main.py