Skip to contentSkip to conversation

main - lvmdbustest: open log file with "a"

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=70a5ebc052e7873761c04679ed8e57cd5f20e91a
Commit:        70a5ebc052e7873761c04679ed8e57cd5f20e91a
Parent:        1949afa24b10991408cff362084cdc881f499535
Author:        Tony Asleson <[email protected]>
AuthorDate:    Thu Mar 9 11:22:51 2023 -0600
Committer:     Tony Asleson <[email protected]>
CommitterDate: Fri Mar 10 12:51:53 2023 -0600

lvmdbustest: open log file with "a"

So we retain the log across fork & exec and lvm shell testing.

---
 test/dbus/lvm_error_inject.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/dbus/lvm_error_inject.py +1 -1
index 454b80171..00653d67f 100755
@@ -36,7 +36,7 @@ def rs(length, character_set=CS):
 
 RS = rs(512)
 
-d_out = open("/tmp/mitm_lvm.txt", "w+")
+d_out = open("/tmp/mitm_lvm.txt", "a")
 
 
 def debug(msg):