[lvm-devel] master - tests: fix last commit

Zdenek Kabelac zkabelac at fedoraproject.org
Thu Oct 17 15:01:09 UTC 2013


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d9e44112c53cad296858f5f796add99441a4b2ae
Commit:        d9e44112c53cad296858f5f796add99441a4b2ae
Parent:        66f4698a93c6cc7d0fb027c5e4209b1de6a880ef
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Thu Oct 17 16:59:30 2013 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Thu Oct 17 16:59:30 2013 +0200

tests: fix last commit

It must not fail here during execution, so always check in a way
that '||' is used for call of settle.
---
 test/lib/utils.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/lib/utils.sh b/test/lib/utils.sh
index 8311c4c..c3bd533 100644
--- a/test/lib/utils.sh
+++ b/test/lib/utils.sh
@@ -215,4 +215,4 @@ esac
 
 test -z "$PREFIX" || prepare_test_vars
 
-test -e /sbin/udevsettle && pidof udevd >/dev/null && /sbin/udevsettle
+test ! -e /sbin/udevsettle || if pidof udevd >/dev/null; then /sbin/udevsettle ; fi




More information about the lvm-devel mailing list