diff --git a/python-psutil.spec b/python-psutil.spec index f81087c..90d1f88 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -68,6 +68,12 @@ find psutil -name \*.py | while read file; do rm $file.orig done +# When running tests on Zuul CI, "/" is not mounted, hence the test fail +# We want to run it on other build systems, hence the explicit skip for +# the particular buildhost +%if "%{_buildhost}" == "zuulci-mockbuild.redhat.com" + sed -i "s/test_disk_partitions/notest_disk_partitions/" psutil/tests/test_system.py +%endif %generate_buildrequires %pyproject_buildrequires