From 810665530a892ea8803b636558e20ac65b2bc37b Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Tue, 20 Aug 2024 14:48:50 +0200 Subject: [PATCH] Skip test_disk_partitions on Zuul CI Resolves: RHEL-58359 --- python-psutil.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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