Skip to contentSkip to conversation

main - lvmdbustest: Don't use hard coded /tmp for error inject log

PATCH Tony Asleson 1 participant 1 message Mar 10, 2023

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=568e8c71d7e39da7494a470400d3f9977c13a1c7
Commit:        568e8c71d7e39da7494a470400d3f9977c13a1c7
Parent:        66e79aab367621cbe76bf1e080d6f8693922ea07
Author:        Tony Asleson <[email protected]>
AuthorDate:    Fri Mar 10 10:41:20 2023 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Fri Mar 10 12:51:53 2023 -0600

lvmdbustest: Don't use hard coded /tmp for error inject log

---
 test/dbus/lvm_error_inject.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/dbus/lvm_error_inject.py +1 -1
index d00b79b05..2849dd29c 100755
@@ -42,7 +42,7 @@ def rs(length, character_set=CS):
 
 RS = rs(512)
 
-d_out = open("/tmp/mitm_lvm.txt", "a")
+d_out = open(os.path.join(tempfile.gettempdir(), "mitm_lvm.txt"), "a")
 
 
 def debug(msg):