From: Mike Frysinger Date: Sun, 22 Dec 2013 23:20:29 +0000 (-0500) Subject: tests: last: skip when last is not enabled X-Git-Tag: v2.25-rc1~665 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afe80619520123cf2ad2445b748d69a2af4166d6;p=thirdparty%2Futil-linux.git tests: last: skip when last is not enabled References: https://bugs.gentoo.org/489794 Signed-off-by: Mike Frysinger --- diff --git a/tests/ts/last/ipv6 b/tests/ts/last/ipv6 index 8e2b01e5c6..60b72bd4bb 100755 --- a/tests/ts/last/ipv6 +++ b/tests/ts/last/ipv6 @@ -18,6 +18,8 @@ TS_DESC="last ipv6" . $TS_TOPDIR/functions.sh ts_init "$*" +[ -x $TS_CMD_LAST ] || ts_skip "last not enabled" + export LANG=C export TZ=GMT diff --git a/tests/ts/last/last b/tests/ts/last/last index 4ad38cbe29..83b7f8d08a 100755 --- a/tests/ts/last/last +++ b/tests/ts/last/last @@ -18,6 +18,8 @@ TS_DESC="last" . $TS_TOPDIR/functions.sh ts_init "$*" +[ -x $TS_CMD_LAST ] || ts_skip "last not enabled" + export LANG=C export TZ=GMT