[PATCH] tests: last: skip when last is not enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



References: https://bugs.gentoo.org/489794
Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 tests/ts/last/ipv6 | 2 ++
 tests/ts/last/last | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/tests/ts/last/ipv6 b/tests/ts/last/ipv6
index 8e2b01e..60b72bd 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 4ad38cb..83b7f8d 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
 
-- 
1.8.4.3

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux