Update to 0.0.19; Fixes: RHBZ#2088180

This commit is contained in:
Davide Cavalca 2022-05-18 16:04:47 -07:00
parent c00de79ef6
commit 49614555fd
4 changed files with 3 additions and 37 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
/drgn-0.0.15.tar.gz /drgn-0.0.15.tar.gz
/drgn-0.0.16.tar.gz /drgn-0.0.16.tar.gz
/drgn-0.0.18.tar.gz /drgn-0.0.18.tar.gz
/drgn-0.0.19.tar.gz

View File

@ -1,33 +0,0 @@
From b6e0ad2af132a9ddd859735408da381e20a31c72 Mon Sep 17 00:00:00 2001
From: Omar Sandoval <osandov@osandov.com>
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 <osandov@osandov.com>
---
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.

View File

@ -14,15 +14,13 @@ drgn exposes the types and variables in a program for easy, expressive
scripting in Python.} scripting in Python.}
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.0.18 Version: 0.0.19
Release: %autorelease Release: %autorelease
Summary: Programmable debugger Summary: Programmable debugger
License: GPLv3+ License: GPLv3+
URL: https://github.com/osandov/drgn URL: https://github.com/osandov/drgn
Source0: %{pypi_source} Source0: %{pypi_source}
# tests: check for missing or invalid /proc/kcore for Linux kernel tests
Patch0: %{url}/commit/b6e0ad2af132a9ddd859735408da381e20a31c72.patch
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3dist(setuptools) BuildRequires: python3dist(setuptools)

View File

@ -1 +1 @@
SHA512 (drgn-0.0.18.tar.gz) = e3ccaba05b2fff41e42b7871561795e444136d2a1651c52df1408d4688af8e9556e7c442ed09128bd0afc08b84d1ae00fe0be22b1e86384040ef5d5fad1e6e92 SHA512 (drgn-0.0.19.tar.gz) = b1dcbd8ea85d2d18753a6f5007403ed92048ad135db3fbe9fe979df6c024b313fe13ace353bd4e203fdef0e8cfa3a68864a830ffa797f786f338298c44210b17