public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tests: last: skip when last is not enabled
@ 2013-12-22 23:20 Mike Frysinger
  2014-01-06 11:45 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2013-12-22 23:20 UTC (permalink / raw)
  To: util-linux

References: https://bugs.gentoo.org/489794
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tests: last: skip when last is not enabled
  2013-12-22 23:20 [PATCH] tests: last: skip when last is not enabled Mike Frysinger
@ 2014-01-06 11:45 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-01-06 11:45 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: util-linux

On Sun, Dec 22, 2013 at 06:20:29PM -0500, Mike Frysinger wrote:
>  tests/ts/last/ipv6 | 2 ++
>  tests/ts/last/last | 2 ++
>  2 files changed, 4 insertions(+)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-06 11:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-22 23:20 [PATCH] tests: last: skip when last is not enabled Mike Frysinger
2014-01-06 11:45 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox