Skip to contentSkip to conversation

main - lvmdbustest: Skip test_singleton_daemon running systemd svc.

PATCH Tony Asleson 1 participant 1 message Sep 19, 2022

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f65f7da76065b2e36920ae4f866e9e912f74dde2
Commit:        f65f7da76065b2e36920ae4f866e9e912f74dde2
Parent:        a5e6947d74f7b88f7f0df4328a923ad82a970634
Author:        Tony Asleson <[email protected]>
AuthorDate:    Wed Aug 24 15:41:03 2022 -0500
Committer:     Tony Asleson <[email protected]>
CommitterDate: Fri Sep 16 10:49:37 2022 -0500

lvmdbustest: Skip test_singleton_daemon running systemd svc.

---
 test/dbus/lvmdbustest.py | 2 ++
 1 file changed, 2 insertions(+)
test/dbus/lvmdbustest.py +2 -0
index ba93379dc..772313246 100755
@@ -2342,6 +2342,8 @@ class TestDbusService(unittest.TestCase):
 		# Ensure we can only have 1 daemon running at a time, daemon should exit with 114 if already running
 		di = DaemonInfo.get()
 		self.assertTrue(di is not None)
+		if di.systemd:
+			raise unittest.SkipTest('existing dameon running via systemd')
 		if di:
 			ec = di.start(True)
 			self.assertEqual(ec, 114)