From: Tony Asleson <tasleson@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - lvmdbustest: Check for needed env. variables
Date: Fri, 10 Mar 2023 18:52:35 +0000 (GMT) [thread overview]
Message-ID: <20230310185235.87FA43858436@sourceware.org> (raw)
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f8876290bfc8d11400901e9eac32f6d613b0ed70
Commit: f8876290bfc8d11400901e9eac32f6d613b0ed70
Parent: 568e8c71d7e39da7494a470400d3f9977c13a1c7
Author: Tony Asleson <tasleson@redhat.com>
AuthorDate: Fri Mar 10 10:41:50 2023 -0600
Committer: Tony Asleson <tasleson@redhat.com>
CommitterDate: Fri Mar 10 12:51:53 2023 -0600
lvmdbustest: Check for needed env. variables
---
test/dbus/lvm_error_inject.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test/dbus/lvm_error_inject.py b/test/dbus/lvm_error_inject.py
index 2849dd29c..098f87070 100755
--- a/test/dbus/lvm_error_inject.py
+++ b/test/dbus/lvm_error_inject.py
@@ -336,8 +336,12 @@ if __name__ == "__main__":
cmdline.extend(args)
ec = run_one(cmdline)
else:
- SH = LvmShellHandler(cmdline)
- ec = SH.run()
+ if "LVM_REPORT_FD" in os.environ:
+ SH = LvmShellHandler(cmdline)
+ ec = SH.run()
+ else:
+ debug('running as lvm shell requires: LVM_REPORT_FD to be set')
+ ec = 1
sys.exit(ec)
except Exception:
traceback.print_exc(file=d_out)
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=20230310185235.87FA43858436@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.