]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: make line(1) optional
authorKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 15:30:15 +0000 (17:30 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 10 Apr 2013 15:30:15 +0000 (17:30 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/misc/line

index 41a95fe8622e6e330732867bc8b6e490f3edc90f..3863a3f8916c40e7f6d6101de0744632672c49ae 100755 (executable)
@@ -18,6 +18,10 @@ TS_DESC="line"
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
 
+if [ ! -x "$TS_CMD_LINE" ]; then
+       ts_skip "line disabled"
+fi
+
 printf "a\nb\n" |
        $TS_CMD_LINE > $TS_OUTPUT 2>&1