From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: kerolasa@iki.fi
Subject: [PATCH 1/3] tests: hwclock: locate ntpdate by using path
Date: Sun, 1 Apr 2012 20:19:30 +0200 [thread overview]
Message-ID: <1333304372-25944-2-git-send-email-kerolasa@iki.fi> (raw)
In-Reply-To: <1333304372-25944-1-git-send-email-kerolasa@iki.fi>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
tests/ts/hwclock/systohc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/ts/hwclock/systohc b/tests/ts/hwclock/systohc
index f58d07e..401ee93 100755
--- a/tests/ts/hwclock/systohc
+++ b/tests/ts/hwclock/systohc
@@ -24,7 +24,8 @@ NTP_SERVER="0.fedora.pool.ntp.org"
ts_init "$*"
ts_skip_nonroot
-[ -x "/usr/sbin/ntpdate" ] || ts_skip "cannot find ntpdate command"
+PATH='/usr/sbin:/usr/bin:/sbin:/bin'
+type ntpdate >/dev/null 2>&1 || ts_skip "cannot find ntpdate command"
set -o pipefail
--
1.7.9.5
next prev parent reply other threads:[~2012-04-01 18:20 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-20 19:27 [pull] chkdupexe, a bug, version numbers and bashisms Sami Kerola
2012-03-30 15:04 ` Karel Zak
2012-04-01 18:19 ` Sami Kerola
2012-04-01 18:19 ` Sami Kerola [this message]
2012-04-02 11:22 ` [PATCH 1/3] tests: hwclock: locate ntpdate by using path Karel Zak
2012-04-01 18:19 ` [PATCH 2/3] script: error in usage() output Sami Kerola
2012-04-02 11:27 ` Karel Zak
2012-04-01 18:19 ` [PATCH 3/3] chkdupexe: reimplement command in C Sami Kerola
2012-04-02 11:10 ` Karel Zak
2012-04-02 11:53 ` Sami Kerola
2012-04-02 12:12 ` Karel Zak
2012-04-04 10:24 ` Karel Zak
2012-04-02 12:22 ` Pádraig Brady
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=1333304372-25944-2-git-send-email-kerolasa@iki.fi \
--to=kerolasa@iki.fi \
--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