Skip unreliable test (riscv64)
This used be skipped on previous versions. Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
7c7693548a
commit
497677d9e4
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 5.9.5
|
Version: 5.9.5
|
||||||
Release: 2%{?dist}
|
Release: 2.0.riscv64%{?dist}
|
||||||
Summary: %{sum}
|
Summary: %{sum}
|
||||||
|
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@ -25,6 +25,12 @@ Patch1: python-psutil-test-sum-floats-via-almost-equal.patch
|
|||||||
#
|
#
|
||||||
Patch2: python-psutil-include-unistd.h.patch
|
Patch2: python-psutil-include-unistd.h.patch
|
||||||
|
|
||||||
|
# This test used to be skipped before
|
||||||
|
# psutil.tests.test_system.TestDiskAPIs.test_disk_partitions ... skipped 'unreliable on CI'
|
||||||
|
# Now:
|
||||||
|
# FAIL: psutil.tests.test_system.TestDiskAPIs.test_disk_partitions
|
||||||
|
Patch3: skip-tests-in-mock-riscv64.patch
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: grep
|
BuildRequires: grep
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
@ -102,6 +108,9 @@ make test APPVEYOR=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitea
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 31 2023 David Abdurachmanov <davidlt@rivosinc.com> - 5.9.5-2.0.riscv64
|
||||||
|
- Skip unreliable test (riscv64)
|
||||||
|
|
||||||
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 5.9.5-2
|
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 5.9.5-2
|
||||||
- Declare the license as an SPDX expression
|
- Declare the license as an SPDX expression
|
||||||
|
|
||||||
|
12
skip-tests-in-mock-riscv64.patch
Normal file
12
skip-tests-in-mock-riscv64.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/psutil/tests/test_system.py b/psutil/tests/test_system.py
|
||||||
|
index 57c6235..d6b4abc 100755
|
||||||
|
--- a/psutil/tests/test_system.py
|
||||||
|
+++ b/psutil/tests/test_system.py
|
||||||
|
@@ -582,6 +582,7 @@ class TestDiskAPIs(PsutilTestCase):
|
||||||
|
def test_disk_usage_bytes(self):
|
||||||
|
psutil.disk_usage(b'.')
|
||||||
|
|
||||||
|
+ @unittest.skip("Unreliable on mock on riscv64")
|
||||||
|
def test_disk_partitions(self):
|
||||||
|
def check_ntuple(nt):
|
||||||
|
self.assertIsInstance(nt.device, str)
|
Loading…
Reference in New Issue
Block a user