diff options
author | Tony Asleson <tasleson@redhat.com> | 2023-03-01 15:59:14 -0600 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2023-03-01 15:59:18 -0600 |
commit | 95afd315b163143296a1a42d2cad2b1cd762725d (patch) | |
tree | 11f1e601d9ec4ef6f308e31b2f3bc0fc6dfb1361 | |
parent | 50e6efafb92367beacc0ee85afcb1279163d601d (diff) | |
download | lvm2-95afd315b163143296a1a42d2cad2b1cd762725d.tar.gz |
lvmdbustest: Don't hard code to /tmp
During lvm testing they use an alternative tmp directory.
-rwxr-xr-x | test/dbus/lvmdbustest.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |