1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: fix for new hardened bash

Add missing get_devs.
When $7 is not given use empty string.
See if we can live with less RAM disk for PVs.
Drop limitation on single core as presence 1.12 should address this.
This commit is contained in:
Zdenek Kabelac 2017-07-12 18:03:10 +02:00
parent e329da173f
commit c838e79cd2

View File

@ -20,9 +20,11 @@ aux have_raid 1 12 0 || skip
# Temporarily skip reshape tests on single-core CPUs until there's a fix for # Temporarily skip reshape tests on single-core CPUs until there's a fix for
# https://bugzilla.redhat.com/1443999 - AGK 2017/04/20 # https://bugzilla.redhat.com/1443999 - AGK 2017/04/20
aux have_multi_core || skip #aux have_multi_core || skip
# dropping single-core limitation with 1.12 target
aux prepare_pvs 65 64 aux prepare_pvs 65 32
get_devs
vgcreate -s 1M "$vg" "${DEVICES[@]}" vgcreate -s 1M "$vg" "${DEVICES[@]}"
@ -51,7 +53,7 @@ function _lvconvert
local stripes=$4 local stripes=$4
local vg=$5 local vg=$5
local lv=$6 local lv=$6
local region_size=$7 local region_size=${7-}
local wait_and_check=1 local wait_and_check=1
local R="" local R=""