Skip to contentSkip to conversation

master - test: allow to succeed in the cluster

PATCH Heinz Mauelshagen 1 participant 1 message Dec 1, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=01b3344cbda712130dec96924fb3c2bdfe4c595b
Commit:        01b3344cbda712130dec96924fb3c2bdfe4c595b
Parent:        053314f2954dd94f707ef4a6ae9967ecd69fad6e
Author:        Heinz Mauelshagen <[email protected]>
AuthorDate:    Fri Dec 1 18:57:21 2017 +0100
Committer:     Heinz Mauelshagen <[email protected]>
CommitterDate: Fri Dec 1 18:57:21 2017 +0100

test: allow to succeed in the cluster

Avoiding in the loop
allows the test to succeed in the cluster. Further cluster analysis needed to get to the core reason.

---
 test/shell/lvconvert-repair-raid.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
test/shell/lvconvert-repair-raid.sh +3 -1
index c866455..d29b72d 100644
@@ -25,10 +25,12 @@ aux lvmconf 'allocation/maximise_cling = 0' \
 aux prepare_vg 8 80
 get_devs
 
+offset=$(get first_extent_sector $dev1)
+
 function delay
 {
 	for d in "${DEVICES[@]}"; do
-		aux delay_dev "$d" 0 $1 "$(get first_extent_sector "$d")"
+		aux delay_dev "$d" 0 $1 "$offset"
 	done
 }