parent
9087007ffc
commit
be2cf8f985
@ -0,0 +1,38 @@
|
||||
From 5b96245740eb8ee94ff744edb9cacd1d161ddec0 Mon Sep 17 00:00:00 2001
|
||||
From: "Bryn M. Reeves" <bmr@redhat.com>
|
||||
Date: Fri, 20 Dec 2024 20:32:14 +0000
|
||||
Subject: [PATCH] tests: temporarily exclude CentOS from test_boot.is_redhat()
|
||||
check
|
||||
|
||||
The current version of boom-boot in CentOS Stream does not support
|
||||
automatic --uname-pattern for CentOS installations:
|
||||
|
||||
# boom profile create --from-host
|
||||
Could not determine uname pattern for 'CentOS Stream'
|
||||
|
||||
Exclude CentOS temporarily from the profile auto-creation test until
|
||||
https://github.com/snapshotmanager/boom-boot/issues/59 is fixed and
|
||||
available in the CentOS repos.
|
||||
---
|
||||
tests/test_boot.py | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_boot.py b/tests/test_boot.py
|
||||
index a15ce5f..e8d76ee 100644
|
||||
--- a/tests/test_boot.py
|
||||
+++ b/tests/test_boot.py
|
||||
@@ -39,7 +39,10 @@ _VAR_TMP = "/var/tmp"
|
||||
|
||||
|
||||
def is_redhat():
|
||||
- return os.path.exists("/etc/redhat-release")
|
||||
+ # Exclude CentOS for now until the fix for boom-boot #59 is available
|
||||
+ # in the CentOS repositories.
|
||||
+ return (os.path.exists("/etc/redhat-release")
|
||||
+ and not os.path.exists("/etc/centos-release"))
|
||||
|
||||
|
||||
class BootTestsSimple(unittest.TestCase):
|
||||
--
|
||||
2.47.1
|
||||
|
||||
@ -9,6 +9,7 @@ Summary: %{summary}
|
||||
License: GPL-2.0-only AND Apache-2.0
|
||||
URL: https://github.com/snapshotmanager/snapm
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: 0001-tests-temporarily-exclude-CentOS-from-test_boot.is_r.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user