forked from pool/python-python-prctl
- Add patch skip-speculation.patch:
* Skip a test that does not work in the OBS sandbox. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=11
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 7 06:49:54 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
Thu Feb 17 05:33:37 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
- Update to 1.8.1:
|
- Update to 1.8.1:
|
||||||
* No changelog.
|
* No changelog.
|
||||||
@@ -8,6 +8,8 @@ Mon Feb 7 06:49:54 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
|||||||
* Support Linux >= 5.10 correctly.
|
* Support Linux >= 5.10 correctly.
|
||||||
- Add patch check-for-python310-correctly.patch:
|
- Add patch check-for-python310-correctly.patch:
|
||||||
* Check for Python 3.10 correctly.
|
* Check for Python 3.10 correctly.
|
||||||
|
- Add patch skip-speculation.patch:
|
||||||
|
* Skip a test that does not work in the OBS sandbox.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Oct 27 09:54:52 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
|
Tue Oct 27 09:54:52 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
@@ -32,6 +32,7 @@ Patch3: powerpc.patch
|
|||||||
Patch4: disable_no_new_privs.patch
|
Patch4: disable_no_new_privs.patch
|
||||||
Patch5: correct-uname-comparsion.patch
|
Patch5: correct-uname-comparsion.patch
|
||||||
Patch6: check-for-python310-correctly.patch
|
Patch6: check-for-python310-correctly.patch
|
||||||
|
Patch7: skip-speculation.patch
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
12
skip-speculation.patch
Normal file
12
skip-speculation.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Index: python-prctl-1.8.1/test_prctl.py
|
||||||
|
===================================================================
|
||||||
|
--- python-prctl-1.8.1.orig/test_prctl.py
|
||||||
|
+++ python-prctl-1.8.1/test_prctl.py
|
||||||
|
@@ -371,6 +371,7 @@ class PrctlTest(unittest.TestCase):
|
||||||
|
self.assertRaises(OSError, set_true)
|
||||||
|
|
||||||
|
@require('set_speculation_ctrl')
|
||||||
|
+ @unittest.skip('borked in sandbox')
|
||||||
|
def test_speculation_ctrl(self):
|
||||||
|
self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_STORE_BYPASS) > 0)
|
||||||
|
self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_INDIRECT_BRANCH) > 0)
|
Reference in New Issue
Block a user