Skip one test not working in Konflux

Resolves: ROK-1063
This commit is contained in:
Lumir Balhar 2025-10-18 11:45:19 +02:00
parent c21ebd2a00
commit 553d9d4c68
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 7ae74c70ddf656200dff3962f099ea6548d0fbe8 Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
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

View File

@ -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 <lbalhar@redhat.com> - 5.9.8-7
- Skip test_disk_partitions in Konflux
Resolves: ROK-1063
* Fri May 23 2025 Andrea Bolognani <abologna@redhat.com> - 5.9.8-6
- Skip test_emulate_multi_cpu on riscv64 too
Resolves: RHEL-93392