summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2023-03-10 10:44:55 -0600
committerTony Asleson <tasleson@redhat.com>2023-03-10 12:51:53 -0600
commitbaf99ff974b408c59dd4f51db6e006d659c061e7 (patch)
tree0c1305e1be5d941f2a7b04e7f420fe366535ce45 /test
parent1c550d7124d4bc1954f7d1d7efc372e1d996b570 (diff)
downloadlvm2-baf99ff974b408c59dd4f51db6e006d659c061e7.tar.gz
lvmdbustest: Add notes on error injection testing
Not doing this by default for automated build testing as it generates a lot of output and slows things down by another ~10%.
Diffstat (limited to 'test')
-rwxr-xr-xtest/dbus/lvmdbustest.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index e1c994e90..00d9303b6 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -2577,6 +2577,12 @@ if __name__ == '__main__':
r = AggregateResults()
mode = int(test_shell)
+ # To test with error injection, simply set the env. variable LVM_BINARY to the error inject script
+ # and the LVM_MAN_IN_MIDDLE variable to the lvm binary to test which defaults to "/usr/sbin/lvm"
+ # An example
+ # export LVM_BINARY=/home/tasleson/projects/lvm2/test/dbus/lvm_error_inject.py
+ # export LVM_MAN_IN_MIDDLE=/home/tasleson/projects/lvm2/tools/lvm
+
if mode == 0:
std_err_print('\n*** Testing only lvm fork & exec test mode ***\n')
elif mode == 1: