Skip test_create_snapshot_set_no_provider in CI
https://github.com/snapshotmanager/snapm/issues/588 Resolves: RHEL-111712 Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
This commit is contained in:
parent
c7528ef1d5
commit
c732297187
@ -0,0 +1,36 @@
|
||||
From a25c448e741870d8baaff2d32e7afb47fc031857 Mon Sep 17 00:00:00 2001
|
||||
From: "Bryn M. Reeves" <bmr@redhat.com>
|
||||
Date: Wed, 5 Nov 2025 11:16:23 +0000
|
||||
Subject: [PATCH] tests: skip test_create_snapshot_set_no_provider if
|
||||
!ismount("/boot")
|
||||
|
||||
Resolves: #588
|
||||
|
||||
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
|
||||
---
|
||||
tests/test_manager.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tests/test_manager.py b/tests/test_manager.py
|
||||
index 62c0603..5dc8ea4 100644
|
||||
--- a/tests/test_manager.py
|
||||
+++ b/tests/test_manager.py
|
||||
@@ -8,6 +8,7 @@
|
||||
import unittest
|
||||
import logging
|
||||
import os
|
||||
+import os.path
|
||||
from uuid import UUID
|
||||
from json import loads
|
||||
import tempfile
|
||||
@@ -506,6 +507,7 @@ class ManagerTests(unittest.TestCase):
|
||||
with self.assertRaises(snapm.SnapmPathError) as cm:
|
||||
self.manager.create_snapshot_set("testset0", [non_mount])
|
||||
|
||||
+ @unittest.skipIf(not os.path.ismount("/boot"), "no suitable mount path")
|
||||
def test_create_snapshot_set_no_provider(self):
|
||||
with self.assertRaises(snapm.SnapmNoProviderError):
|
||||
self.manager.create_snapshot_set("testset0", ["/boot"])
|
||||
--
|
||||
2.51.0
|
||||
|
||||
@ -8,6 +8,7 @@ Summary: %{summary}
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/snapshotmanager/%{name}
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: 0001-tests-skip-test_create_snapshot_set_no_provider-if-i.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user