From 928e9f327fb7c35c533034a8e68016f613decbc7 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 14 Aug 2008 13:01:04 +0200 Subject: [PATCH] tests: detect libvolume_id when mount(8) is compiled Signed-off-by: Karel Zak --- tests/functions.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.39.5