]> err.no Git - util-linux/commitdiff
tests: disable blkid tests when blkid(8) is not compiled
authorKarel Zak <kzak@redhat.com>
Mon, 16 Mar 2009 13:03:03 +0000 (14:03 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Mar 2009 13:03:03 +0000 (14:03 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/blkid/low-probe

index 4018c81d3021fe889175d8b4213c6b19ac722651..38afe5255727ab764f3fd0cc998d62f93f3ab01d 100755 (executable)
@@ -22,6 +22,11 @@ TS_DESC="low-probe"
 . $TS_TOPDIR/functions.sh
 
 ts_init "$*"
+
+if [ ! -x "$TS_CMD_BLKID" ]; then
+       ts_skip "blkid disabled"
+fi
+
 mkdir -p $TS_OUTDIR/images
 
 for img in $(ls $TS_SELF/images/*.img.bz2 | sort); do