Skip to contentSkip to conversation

master - tests: fix error detection in lvconvert-raid-takeover.sh

PATCH David Teigland 1 participant 1 message May 23, 2019

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=6169c0a51b8098e4ffa15fb52cafccf7a73ab22c
Commit:        6169c0a51b8098e4ffa15fb52cafccf7a73ab22c
Parent:        2036608423117626eb1905b38e09c767983b2ef4
Author:        David Teigland <[email protected]>
AuthorDate:    Thu May 23 10:29:52 2019 -0500
Committer:     David Teigland <[email protected]>
CommitterDate: Thu May 23 10:29:52 2019 -0500

tests: fix error detection in lvconvert-raid-takeover.sh

---
 test/shell/lvconvert-raid-takeover.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/lvconvert-raid-takeover.sh +1 -1
index b57cbe9..6a4d554 100644
@@ -26,7 +26,7 @@ aux prepare_vg 8
 # FIXME: lvconvert leaks  'error' devices
 detect_error_leak_()
 {
-	dmsetup table -S "name=~^$vg-" | not grep "error" || \
+	dmsetup table -S "name=~^$vg-" | awk '{print $3}'| not grep error || \
 		die "Device(s) with error target should not be here."
 }