public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: util-linux@vger.kernel.org
Subject: [PATCH] tests: last: skip when last is not enabled
Date: Sun, 22 Dec 2013 18:20:29 -0500	[thread overview]
Message-ID: <1387754429-19777-1-git-send-email-vapier@gentoo.org> (raw)

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


             reply	other threads:[~2013-12-22 23:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-22 23:20 Mike Frysinger [this message]
2014-01-06 11:45 ` [PATCH] tests: last: skip when last is not enabled Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1387754429-19777-1-git-send-email-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox