summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2023-03-10 10:43:02 -0600
committerTony Asleson <tasleson@redhat.com>2023-03-10 12:51:53 -0600
commit1c550d7124d4bc1954f7d1d7efc372e1d996b570 (patch)
treeb5fd0b86bcf2acf4fde6d163481e046f97ab4a81
parentf8876290bfc8d11400901e9eac32f6d613b0ed70 (diff)
downloadlvm2-1c550d7124d4bc1954f7d1d7efc372e1d996b570.tar.gz
lvmdbustest: Add env. variable to skip signal testing
This is currently need if we are collecting code coverage data as we don't handle this unit test correctly.
-rwxr-xr-xtest/dbus/lvmdbustest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index b7224df96..e1c994e90 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -2347,6 +2347,9 @@ class TestDbusService(unittest.TestCase):
def test_z_sigint(self):
# Issue SIGINT while daemon is processing work to ensure we shut down.
+ if not bool(int(os.getenv("LVM_DBUSD_TEST_SKIP_SIGNAL", "0"))):
+ raise unittest.SkipTest("Skipping as env. LVM_DBUSD_TEST_SKIP_SIGNAL is '0'")
+
di = DaemonInfo.get()
self.assertTrue(di is not None)
if di: