File bsc#1121808-0001-Test-cts-exec-still-run-the-tests-for-the-other-reso-1.1.patch of Package pacemaker.13252
From b88c6f1907011fcad21a38bdef38c78962a1c4c9 Mon Sep 17 00:00:00 2001
From: "Gao,Yan" <ygao@suse.com>
Date: Fri, 11 Jan 2019 11:43:49 +0100
Subject: [PATCH] Test: cts-exec: still run the tests for the other resource
classes even without python systemd bindings
---
lrmd/regression.py.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lrmd/regression.py.in b/lrmd/regression.py.in
index 197bbfbf2..e970faf97 100755
--- a/lrmd/regression.py.in
+++ b/lrmd/regression.py.in
@@ -307,9 +307,9 @@ class Tests(object):
# systemd tests to fail.
import systemd.daemon
except ImportError:
- print("Fatal error: python systemd bindings not found. Is package installed?",
- file=sys.stderr)
- sys.exit(1)
+ print("Python systemd bindings not found.")
+ print("The tests for systemd class are not going to be run.")
+ self.rsc_classes.remove("systemd")
print("Testing "+repr(self.rsc_classes))
--
2.16.4