summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2023-02-23 12:24:39 -0600
committerTony Asleson <tasleson@redhat.com>2023-02-27 09:07:37 -0600
commite3b7395af460033493a01d222b52cf8931090f64 (patch)
tree6b90812302f3ada802bb61daa98c2417beafbb02 /test
parent1857eb9fe08924c2e4e5adfc322ee4a2ae5a2e67 (diff)
downloadlvm2-e3b7395af460033493a01d222b52cf8931090f64.tar.gz
lvmdbustest.py: Remove use of root_dir in glob
This feature has only been in python since 10/2021.
Diffstat (limited to 'test')
-rwxr-xr-xtest/dbus/lvmdbustest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py
index 685acd563..b1c965bb7 100755
--- a/test/dbus/lvmdbustest.py
+++ b/test/dbus/lvmdbustest.py
@@ -258,9 +258,9 @@ def remove_lvm_debug():
# If we are running the lvmdbusd daemon and collecting lvm debug data, check and
# clean-up after the tests.
tmpdir = tempfile.gettempdir()
- for f in glob("lvmdbusd.lvm.debug.*.log", root_dir=tmpdir):
- fn = os.path.join(tmpdir, f)
- os.unlink(fn)
+ fp = os.path.join(tmpdir, "lvmdbusd.lvm.debug.*.log")
+ for f in glob(fp):
+ os.unlink(f)
class DaemonInfo(object):