diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-08 23:07:50 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-03-10 12:24:10 +0100 |
commit | 6cc75d149710aa0ffbdfe58e4abc92572cbed07a (patch) | |
tree | 378cd40ca90e57dedaa3541b6f9f017a6502eaf3 | |
parent | 4eed2c8142dc50e1d359881027aa38a4e4ef2149 (diff) | |
download | lvm2-6cc75d149710aa0ffbdfe58e4abc92572cbed07a.tar.gz |
tests: workaround bash bug
Seems new bash4.3 is somewhat buggy
https://bugzilla.redhat.com/show_bug.cgi?id=1074202
Put in cheap workaround for now.
-rw-r--r-- | test/lib/check.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lib/check.sh b/test/lib/check.sh index 9c553386d..20ad6c3ac 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -60,13 +60,13 @@ lv_err_list_() { } lv_on_diff_() { - declare -a devs=("${!1}") # pass in shell array + declare -a xdevs=("${!1}") # pass in shell array local expect=( "${@:4}" ) # make an array starting from 4th args... local diff_e # Find diff between 2 shell arrays, print them as stdin files printf "%s\n" "${expect[@]}" | sort | uniq >_lv_on_diff1 - printf "%s\n" "${devs[@]}" >_lv_on_diff2 + printf "%s\n" "${xdevs[@]}" >_lv_on_diff2 diff_e=$(diff _lv_on_diff1 _lv_on_diff2) || die "LV $2/$3 $(lv_err_list_ "^>" "${diff_e}" found)$(lv_err_list_ "^<" "${diff_e}" "not found")." } |