summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-06-29 09:40:01 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-06-29 22:23:17 +0200
commit51237cb5047a93382f8d239e9aa9d3899154300f (patch)
treed0bff46619020f0771fa5ae821383f77eaedb305
parentdb338c2b42abb6b5274fba5f93a982241afa8ecf (diff)
downloadlvm2-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.sh2
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