Skip to contentSkip to conversation

master - tests: remove debug.log in enable_dev

PATCH Zdenek Kabelac 1 participant 1 message Feb 11, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4ed831e7ef4cc82c84731294f0189620ff5439c5
Commit:        4ed831e7ef4cc82c84731294f0189620ff5439c5
Parent:        108ae0edc6a6c4bb771fa7931fc1e709793ddadf
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Feb 11 13:42:03 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Feb 11 19:00:06 2014 +0100

tests: remove debug.log in enable_dev

In aux functions we may drop debug log from last running lvm command - so we do not get debug log from properly executed command, when we fail here.

---
 test/lib/aux.sh |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
test/lib/aux.sh +1 -0
index 3c02d40..9420528 100644
@@ -393,6 +393,7 @@ disable_dev() {
 enable_dev() {
 	local dev
 
+	rm -f debug.log
 	init_udev_transaction
 	for dev in "$@"; do
 		local name=$(echo "$dev" | sed -e 's,.*/,,')