main - lvmdbustest.py: Remove use of root_dir in glob
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e3b7395af460033493a01d222b52cf8931090f64 Commit: e3b7395af460033493a01d222b52cf8931090f64 Parent: 1857eb9fe08924c2e4e5adfc322ee4a2ae5a2e67 Author: Tony Asleson <[email protected]> AuthorDate: Thu Feb 23 12:24:39 2023 -0600 Committer: Tony Asleson <[email protected]> CommitterDate: Mon Feb 27 09:07:37 2023 -0600
lvmdbustest.py: Remove use of root_dir in glob
This feature has only been in python since 10/2021.
--- test/dbus/lvmdbustest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
test/dbus/lvmdbustest.py +3 -3
@@ -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):