diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 09:40:01 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-06-29 22:23:17 +0200 |
commit | 51237cb5047a93382f8d239e9aa9d3899154300f (patch) | |
tree | d0bff46619020f0771fa5ae821383f77eaedb305 | |
parent | db338c2b42abb6b5274fba5f93a982241afa8ecf (diff) | |
download | lvm2-51237cb5047a93382f8d239e9aa9d3899154300f.tar.gz |
tests: check.sh better if
Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
-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 855523580..64019da61 100644 --- a/test/lib/check.sh +++ b/test/lib/check.sh @@ -225,7 +225,7 @@ in_sync() { b=( $(echo "${a[$idx]}" | sed s:/:' ':) ) - if [ "${b[0]}" -eq 0 -o "${b[0]}" != "${b[1]}" ]; then + if [ "${b[0]}" -eq 0 ] || [ "${b[0]}" != "${b[1]}" ]; then echo "$lvm_name ($type$snap) is not in-sync" return 1 fi |