From 553d9d4c6829530ca140e901f163bb9d331e77a7 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Sat, 18 Oct 2025 11:45:19 +0200 Subject: [PATCH] Skip one test not working in Konflux Resolves: ROK-1063 --- python-psutil-skip-test-in-konflux.patch | 24 ++++++++++++++++++++++++ python-psutil.spec | 11 ++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 python-psutil-skip-test-in-konflux.patch diff --git a/python-psutil-skip-test-in-konflux.patch b/python-psutil-skip-test-in-konflux.patch new file mode 100644 index 0000000..4f0e02e --- /dev/null +++ b/python-psutil-skip-test-in-konflux.patch @@ -0,0 +1,24 @@ +From 7ae74c70ddf656200dff3962f099ea6548d0fbe8 Mon Sep 17 00:00:00 2001 +From: Lumir Balhar +Date: Sat, 18 Oct 2025 15:07:24 +0200 +Subject: [PATCH] Skip test incompatible with konflux + +--- + psutil/tests/test_system.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py +index 4bd1225..5a63c21 100755 +--- a/psutil/tests/test_system.py ++++ b/psutil/tests/test_system.py +@@ -632,6 +632,7 @@ class TestDiskAPIs(PsutilTestCase): + def test_disk_usage_bytes(self): + psutil.disk_usage(b'.') + ++ @unittest.skip(reason="Does not work in Konflux") + def test_disk_partitions(self): + def check_ntuple(nt): + self.assertIsInstance(nt.device, str) +-- +2.51.0 + diff --git a/python-psutil.spec b/python-psutil.spec index 33e59e5..126e822 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -1,6 +1,6 @@ Name: python-psutil Version: 5.9.8 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A process and system utilities module for Python License: BSD-3-Clause @@ -34,6 +34,11 @@ Patch: python-psutil-skip-test-sensors-temperatures.patch # Reported upstream: https://github.com/giampaolo/psutil/pull/2435 # Patch: python-psutil-sockets-are-not-paths.patch +# +# Skip tests that fail in Konflux +# Resolves: https://issues.redhat.com/browse/ROK-1063 +# +Patch: python-psutil-skip-test-in-konflux.patch BuildRequires: gcc BuildRequires: sed @@ -122,6 +127,10 @@ APPVEYOR=1 %{py3_test_envvars} %{python3} psutil/tests/runner.py %changelog +* Sat Oct 18 2025 Lumir Balhar - 5.9.8-7 +- Skip test_disk_partitions in Konflux + Resolves: ROK-1063 + * Fri May 23 2025 Andrea Bolognani - 5.9.8-6 - Skip test_emulate_multi_cpu on riscv64 too Resolves: RHEL-93392