From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbustest: Add env. variable to skip signal testing
Date: Fri, 10 Mar 2023 18:52:36 +0000 (GMT) [thread overview]
Message-ID: <20230310185236.A995F385841A@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1c550d7124d4bc1954f7d1d7efc372e1d996b570
Commit: 1c550d7124d4bc1954f7d1d7efc372e1d996b570
Parent: f8876290bfc8d11400901e9eac32f6d613b0ed70
Author: Tony Asleson <tasleson@redhat.com>
AuthorDate: Fri Mar 10 10:43:02 2023 -0600
Committer: Tony Asleson <tasleson@redhat.com>
CommitterDate: Fri Mar 10 12:51:53 2023 -0600
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.
---
test/dbus/lvmdbustest.py | 3 +++
1 file changed, 3 insertions(+)
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:
reply other threads:[~2023-03-10 18:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230310185236.A995F385841A@sourceware.org \
--to=tasleson@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.