[lvm-devel] master - test: allow to succeed in the cluster

Heinz Mauelshagen heinzm at sourceware.org
Fri Dec 1 17:57:46 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=01b3344cbda712130dec96924fb3c2bdfe4c595b
Commit:        01b3344cbda712130dec96924fb3c2bdfe4c595b
Parent:        053314f2954dd94f707ef4a6ae9967ecd69fad6e
Author:        Heinz Mauelshagen <heinzm at redhat.com>
AuthorDate:    Fri Dec 1 18:57:21 2017 +0100
Committer:     Heinz Mauelshagen <heinzm at redhat.com>
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(-)

diff --git a/test/shell/lvconvert-repair-raid.sh b/test/shell/lvconvert-repair-raid.sh
index c866455..d29b72d 100644
--- a/test/shell/lvconvert-repair-raid.sh
+++ b/test/shell/lvconvert-repair-raid.sh
@@ -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
 }
 




More information about the lvm-devel mailing list