From: Karel Zak Date: Thu, 14 Aug 2008 11:01:04 +0000 (+0200) Subject: tests: detect libvolume_id when mount(8) is compiled X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=928e9f327fb7c35c533034a8e68016f613decbc7;p=util-linux tests: detect libvolume_id when mount(8) is compiled Signed-off-by: Karel Zak --- diff --git a/tests/functions.sh b/tests/functions.sh index 58577315..a39c98b6 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -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