From 40ba1cda079ea90c2a1a64c846962afdedc4c0a6 Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 27 May 2024 17:48:56 +0300 Subject: [PATCH] Skip ionice tests --- SOURCES/0001-Skip-ionice-test.patch | 26 ++++++++++++++++++++++++++ SPECS/python-psutil.spec | 8 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0001-Skip-ionice-test.patch diff --git a/SOURCES/0001-Skip-ionice-test.patch b/SOURCES/0001-Skip-ionice-test.patch new file mode 100644 index 0000000..aae895d --- /dev/null +++ b/SOURCES/0001-Skip-ionice-test.patch @@ -0,0 +1,26 @@ +From 3955dee39eff8058f355a79a0000ba0e0ee4974d Mon Sep 17 00:00:00 2001 +From: tigro +Date: Mon, 27 May 2024 17:45:27 +0300 +Subject: [PATCH] Skip ionice test + +--- + psutil/tests/test_process.py | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/psutil/tests/test_process.py b/psutil/tests/test_process.py +index 0ec2ead..c590674 100755 +--- a/psutil/tests/test_process.py ++++ b/psutil/tests/test_process.py +@@ -342,8 +342,7 @@ class TestProcess(PsutilTestCase): + self.assertGreaterEqual(io2[i], 0) + self.assertGreaterEqual(io2[i], 0) + +- @unittest.skipIf(not HAS_IONICE, "not supported") +- @unittest.skipIf(not LINUX, "linux only") ++ @unittest.skip("Skip ionice tests") + def test_ionice_linux(self): + p = psutil.Process() + if not CI_TESTING: +-- +2.45.1 + diff --git a/SPECS/python-psutil.spec b/SPECS/python-psutil.spec index f0e4798..401c4e1 100644 --- a/SPECS/python-psutil.spec +++ b/SPECS/python-psutil.spec @@ -5,7 +5,7 @@ Name: python-%{srcname} Version: 5.8.0 -Release: 4%{?dist} +Release: 4%{?dist}.inferit Summary: %{sum} License: BSD @@ -28,6 +28,9 @@ Patch1: python-psutil-skip-test-broken-ipv6.patch # Skip flaky tests Patch2: python-psutil-skip-flaky-tests.patch +# Skip ionice tests +Patch3: 0001-Skip-ionice-test.patch + BuildRequires: make BuildRequires: gcc BuildRequires: python%{python3_pkgversion}-devel @@ -91,6 +94,9 @@ make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sit %changelog +* Mon May 27 2024 Arkady L. Shane - 5.8.0-4.inferit +- Skip ionice tests + * Fri May 24 2024 MSVSphere Packaging Team - 5.8.0-4 - Rebuilt for MSVSphere 8.10