main - lvmdbustest.py: Remove use of root_dir in glob

Tony Asleson <[email protected]>
Newsgroups gmane.linux.lvm.devel
Message-ID <[email protected]>
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(-)

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):

--
lvm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/lvm-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.