]> err.no Git - util-linux/commitdiff
tests: detect libvolume_id when mount(8) is compiled
authorKarel Zak <kzak@redhat.com>
Thu, 14 Aug 2008 11:01:04 +0000 (13:01 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 14 Aug 2008 11:01:04 +0000 (13:01 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/functions.sh

index 5857731521377ab965936bad051b66cfe8f4a3af..a39c98b610db3133d0251e9146409a477dc2e450 100644 (file)
@@ -88,9 +88,11 @@ function ts_init {
 
        export BLKID_FILE
 
-       ldd $TS_CMD_MOUNT | grep -q 'libvolume_id' &> /dev/null
-       if [ "$?" == "0" ]; then
-               TS_HAS_VOLUMEID="yes"
+       if [ -x $TS_CMD_MOUNT ]; then
+               ldd $TS_CMD_MOUNT | grep -q 'libvolume_id' &> /dev/null
+               if [ "$?" == "0" ]; then
+                       TS_HAS_VOLUMEID="yes"
+               fi
        fi
 
        rm -f $TS_OUTPUT