summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-12-22 18:20:29 -0500
committerKarel Zak <kzak@redhat.com>2014-01-06 12:45:16 +0100
commitafe80619520123cf2ad2445b748d69a2af4166d6 (patch)
treeb7e4927aaf15c96f0598350de67d42f2bc72fc89 /tests
parent2d4f3bfb7f9c7253ac22ff8ab64dd318034135c5 (diff)
downloadutil-linux-afe80619520123cf2ad2445b748d69a2af4166d6.tar.gz
tests: last: skip when last is not enabled
References: https://bugs.gentoo.org/489794 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/ts/last/ipv62
-rwxr-xr-xtests/ts/last/last2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/last/ipv6 b/tests/ts/last/ipv6
index 8e2b01e5..60b72bd4 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 4ad38cbe..83b7f8d0 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