1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lvmdbustest: Correct env. logic

Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
Tony Asleson 2023-03-14 08:05:57 -05:00
parent baf99ff974
commit 0c73d3545b

View File

@ -2347,8 +2347,8 @@ 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'")
if bool(int(os.getenv("LVM_DBUSD_TEST_SKIP_SIGNAL", "0"))):
raise unittest.SkipTest("Skipping as env. LVM_DBUSD_TEST_SKIP_SIGNAL is '1'")
di = DaemonInfo.get()
self.assertTrue(di is not None)