summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc
diff options
context:
space:
mode:
authorKarel Zak2013-04-10 17:30:15 +0200
committerKarel Zak2013-04-10 17:30:15 +0200
commitb46692cd436eab815ebda831ad62cec69298e7e3 (patch)
tree3afa43174246364888207050aeea8d7379244afe /tests/ts/misc
parentlibblkid: remove duplicate includes (diff)
downloadkernel-qcow2-util-linux-b46692cd436eab815ebda831ad62cec69298e7e3.tar.gz
kernel-qcow2-util-linux-b46692cd436eab815ebda831ad62cec69298e7e3.tar.xz
kernel-qcow2-util-linux-b46692cd436eab815ebda831ad62cec69298e7e3.zip
tests: make line(1) optional
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/misc')
-rwxr-xr-xtests/ts/misc/line4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/misc/line b/tests/ts/misc/line
index 41a95fe86..3863a3f89 100755
--- a/tests/ts/misc/line
+++ b/tests/ts/misc/line
@@ -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