Skip to contentSkip to conversation

master - tests: use get_devs

PATCH Zdenek Kabelac 1 participant 1 message Jul 14, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c64e2a85cb1c76413cf2eee49873bfb9ee24393f
Commit:        c64e2a85cb1c76413cf2eee49873bfb9ee24393f
Parent:        413209f3f8f35963dda8b0fbbbaaa785e44958e2
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Jul 15 00:13:33 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Sat Jul 15 00:13:33 2017 +0200

tests: use get_devs

---
 test/shell/lvconvert-repair-raid.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
test/shell/lvconvert-repair-raid.sh +2 -2
index 93b7db2..c866455 100644
@@ -23,11 +23,11 @@ aux lvmconf 'allocation/maximise_cling = 0' \
 	    'activation/raid_fault_policy = "allocate"'
 
 aux prepare_vg 8 80
+get_devs
 
 function delay
 {
-	for d in $(< DEVICES)
-	do
+	for d in "${DEVICES[@]}"; do
 		aux delay_dev "$d" 0 $1 "$(get first_extent_sector "$d")"
 	done
 }