diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-12-22 18:20:29 -0500 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2014-01-06 12:45:16 +0100 |
commit | afe80619520123cf2ad2445b748d69a2af4166d6 (patch) | |
tree | b7e4927aaf15c96f0598350de67d42f2bc72fc89 /tests | |
parent | 2d4f3bfb7f9c7253ac22ff8ab64dd318034135c5 (diff) | |
download | util-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-x | tests/ts/last/ipv6 | 2 | ||||
-rwxr-xr-x | tests/ts/last/last | 2 |
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 |