Skip TestSystemVirtualMemory.test_used in Konflux
Resolves: RHEL-183555
This commit is contained in:
parent
aed745c149
commit
9b9618dab6
23
python-psutil-skip-test-in-konflux.patch
Normal file
23
python-psutil-skip-test-in-konflux.patch
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lumir Balhar <lbalhar@redhat.com>
|
||||||
|
Date: Wed, 02 Jul 2026 08:00:00 +0000
|
||||||
|
Subject: [PATCH] Skip TestSystemVirtualMemory.test_used incompatible with Konflux
|
||||||
|
|
||||||
|
---
|
||||||
|
psutil/tests/test_linux.py | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/psutil/tests/test_linux.py b/psutil/tests/test_linux.py
|
||||||
|
--- a/psutil/tests/test_linux.py
|
||||||
|
+++ b/psutil/tests/test_linux.py
|
||||||
|
@@ -246,6 +246,7 @@
|
||||||
|
self.assertAlmostEqual(
|
||||||
|
vmstat_value, psutil_value, delta=TOLERANCE_SYS_MEM)
|
||||||
|
|
||||||
|
+ @unittest.skip(reason="Does not work in Konflux")
|
||||||
|
@retry_on_failure()
|
||||||
|
def test_used(self):
|
||||||
|
# Older versions of procps used slab memory to calculate used memory.
|
||||||
|
--
|
||||||
|
2.51.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.8.0
|
Version: 5.8.0
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
License: BSD
|
License: BSD
|
||||||
@ -20,6 +20,10 @@ Patch1: python-psutil-skip-tests-in-brew.patch
|
|||||||
|
|
||||||
# Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total
|
# Add tolerance to psutil.tests.test_linux.TestSystemVirtualMemory.test_total
|
||||||
Patch2: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch
|
Patch2: https://github.com/giampaolo/psutil/pull/1935.patch#/python-psutil-add-tolerance.patch
|
||||||
|
#
|
||||||
|
# Skip tests that fail in Konflux
|
||||||
|
#
|
||||||
|
Patch3: python-psutil-skip-test-in-konflux.patch
|
||||||
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
@ -88,6 +92,10 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit
|
|||||||
%{python3_sitearch}/%{srcname}/tests/
|
%{python3_sitearch}/%{srcname}/tests/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 02 2026 Lumir Balhar <lbalhar@redhat.com> - 5.8.0-13
|
||||||
|
- Skip TestSystemVirtualMemory.test_used in Konflux
|
||||||
|
Resolves: RHEL-183555
|
||||||
|
|
||||||
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 5.8.0-12
|
* Tue Feb 08 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 5.8.0-12
|
||||||
- Add automatically generated Obsoletes tag with the python39- prefix
|
- Add automatically generated Obsoletes tag with the python39- prefix
|
||||||
for smoother upgrade from RHEL8
|
for smoother upgrade from RHEL8
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user