Skip test_disk_partitions on Zuul CI

Resolves: RHEL-58359
This commit is contained in:
Karolina Surma 2024-08-20 14:48:50 +02:00
parent d437c62b01
commit 810665530a

View File

@ -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