main - lvmdbustest: Don't hard code to /tmp
Tony Asleson <[email protected]>
| Newsgroups | gmane.linux.lvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=95afd315b163143296a1a42d2cad2b1cd762725d Commit: 95afd315b163143296a1a42d2cad2b1cd762725d Parent: 50e6efafb92367beacc0ee85afcb1279163d601d Author: Tony Asleson <[email protected]> AuthorDate: Wed Mar 1 15:59:14 2023 -0600 Committer: Tony Asleson <[email protected]> CommitterDate: Wed Mar 1 15:59:18 2023 -0600 lvmdbustest: Don't hard code to /tmp During lvm testing they use an alternative tmp directory. --- test/dbus/lvmdbustest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/dbus/lvmdbustest.py b/test/dbus/lvmdbustest.py index 8d70b4477..9a3cb175a 100755 --- a/test/dbus/lvmdbustest.py +++ b/test/dbus/lvmdbustest.py @@ -2301,7 +2301,7 @@ class TestDbusService(unittest.TestCase): self._vdo_pool_lv(), test_ss=False) def _log_file_option(self): - fn = "/tmp/%s" % rs(8, "_lvm.log") + fn = os.path.join(tempfile.gettempdir(), rs(8, "_lvm.log")) try: options = dbus.Dictionary({}, signature=dbus.Signature('sv')) option_str = "log { level=7 file=%s syslog=0 }" % fn -- lvm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/lvm-devel