summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2023-03-09 11:23:47 -0600
committerTony Asleson <tasleson@redhat.com>2023-03-10 12:51:53 -0600
commit2359023009db40112f4220899f0983684d897765 (patch)
tree1c63cf251db5f2b5adb62e555e3078e469cf848e /test
parent70a5ebc052e7873761c04679ed8e57cd5f20e91a (diff)
downloadlvm2-2359023009db40112f4220899f0983684d897765.tar.gz
lvmdbustest: Correctly set up env. for error injection
Diffstat (limited to 'test')
-rwxr-xr-xtest/dbus/lvm_error_inject.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/dbus/lvm_error_inject.py b/test/dbus/lvm_error_inject.py
index 00653d67f..d87286740 100755
--- a/test/dbus/lvm_error_inject.py
+++ b/test/dbus/lvm_error_inject.py
@@ -183,6 +183,8 @@ class LvmShellHandler:
env = copy.deepcopy(os.environ)
env["LVM_REPORT_FD"] = "%s" % str(passed_report_fd)
+ env["LC_ALL"] = "C"
+ env["LVM_COMMAND_PROFILE"] = "lvmdbusd"
self.parent_stdin_fd, child_stdin_fd = pty.openpty()
self.parent_stdout_fd, child_stdout_fd = pty.openpty()