]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: last: skip when last is not enabled
authorMike Frysinger <vapier@gentoo.org>
Sun, 22 Dec 2013 23:20:29 +0000 (18:20 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jan 2014 11:45:16 +0000 (12:45 +0100)
References: https://bugs.gentoo.org/489794
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tests/ts/last/ipv6
tests/ts/last/last

index 8e2b01e5c63c9c63e158dec4823d2d5bd6e0b47d..60b72bd4bba96bf1e31e5f80f3c979b9ae6391bd 100755 (executable)
@@ -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
 
index 4ad38cbe2926e98e80660569d25894aae50970e0..83b7f8d08a63d6ba3ad005af4429988a6f875a9c 100755 (executable)
@@ -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