diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-26 13:11:46 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2015-05-27 11:10:43 +0200 |
commit | f0a4955eb1e9fe070d10f451d9d296ceb665fbaa (patch) | |
tree | 45d3311458df807a97fcf0c58546a9da99c55db0 | |
parent | c254743ef31f1d36f85329cad1a5c3b55fca2bb0 (diff) | |
download | lvm2-f0a4955eb1e9fe070d10f451d9d296ceb665fbaa.tar.gz |
tests: better check for array in sync
Update check for raid array being in sync - getting somewhat complex.
It's another way to fight with problems in:
https://bugzilla.redhat.com/show_bug.cgi?id=1210637
-rw-r--r-- | test/lib/check.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/check.sh b/test/lib/check.sh index 524429087..23af3a919 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -212,7 +212,7 @@ in_sync() { b=( $(echo ${a[$idx]} | sed s:/:' ':) ) - if [ ${b[0]} != ${b[1]} ]; then + if [ ${a[$(($idx + 1))]} != "idle" -o ${b[0]} -eq 0 -o ${b[0]} != ${b[1]} ]; then echo "$lvm_name ($type$snap) is not in-sync" return 1 fi |