diff --git a/.gitignore b/.gitignore index e397b0a..b0dfa9f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /drgn-0.0.15.tar.gz /drgn-0.0.16.tar.gz /drgn-0.0.18.tar.gz +/drgn-0.0.19.tar.gz diff --git a/b6e0ad2af132a9ddd859735408da381e20a31c72.patch b/b6e0ad2af132a9ddd859735408da381e20a31c72.patch deleted file mode 100644 index bee3c9e..0000000 --- a/b6e0ad2af132a9ddd859735408da381e20a31c72.patch +++ /dev/null @@ -1,33 +0,0 @@ -From b6e0ad2af132a9ddd859735408da381e20a31c72 Mon Sep 17 00:00:00 2001 -From: Omar Sandoval -Date: Thu, 3 Mar 2022 01:17:51 -0800 -Subject: [PATCH] tests: check for missing or invalid /proc/kcore for Linux - kernel tests - -If /proc/kcore is missing (e.g., because CONFIG_PROC_KCORE is not -enabled) or invalid (e.g., Docker mounts /dev/null over /proc/kcore), -then skip the tests. - -Signed-off-by: Omar Sandoval ---- - tests/helpers/linux/__init__.py | 7 +++++++ - 1 file changed, 7 insertions(+) - -diff --git a/tests/helpers/linux/__init__.py b/tests/helpers/linux/__init__.py -index 5d71598d..2e48fb85 100644 ---- a/tests/helpers/linux/__init__.py -+++ b/tests/helpers/linux/__init__.py -@@ -45,6 +45,13 @@ def setUpClass(cls): - "Linux helper tests must be run as root " - "(run with env DRGN_RUN_LINUX_HELPER_TESTS=1 to force)" - ) -+ except (FileNotFoundError, ValueError): -+ if force_run: -+ raise -+ LinuxHelperTestCase.skip_reason = ( -+ "Linux helper tests require /proc/kcore " -+ "(run with env DRGN_RUN_LINUX_HELPER_TESTS=1 to force)" -+ ) - else: - # Some of the tests use the loop module. Open loop-control - # so that it is loaded. diff --git a/python-drgn.spec b/python-drgn.spec index 0510179..0b2661e 100644 --- a/python-drgn.spec +++ b/python-drgn.spec @@ -14,15 +14,13 @@ drgn exposes the types and variables in a program for easy, expressive scripting in Python.} Name: python-%{pypi_name} -Version: 0.0.18 +Version: 0.0.19 Release: %autorelease Summary: Programmable debugger License: GPLv3+ URL: https://github.com/osandov/drgn Source0: %{pypi_source} -# tests: check for missing or invalid /proc/kcore for Linux kernel tests -Patch0: %{url}/commit/b6e0ad2af132a9ddd859735408da381e20a31c72.patch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) diff --git a/sources b/sources index 4211e45..ddefe4b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (drgn-0.0.18.tar.gz) = e3ccaba05b2fff41e42b7871561795e444136d2a1651c52df1408d4688af8e9556e7c442ed09128bd0afc08b84d1ae00fe0be22b1e86384040ef5d5fad1e6e92 +SHA512 (drgn-0.0.19.tar.gz) = b1dcbd8ea85d2d18753a6f5007403ed92048ad135db3fbe9fe979df6c024b313fe13ace353bd4e203fdef0e8cfa3a68864a830ffa797f786f338298c44210b17