]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: hwclock: locate ntpdate by using path
authorSami Kerola <kerolasa@iki.fi>
Sun, 1 Apr 2012 18:19:30 +0000 (20:19 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Apr 2012 11:14:20 +0000 (13:14 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests/ts/hwclock/systohc

index f58d07e22eaeefd0daf594ac2a5fd2711b73e3b2..401ee937edecf5db099163dec7f246c47fba4678 100755 (executable)
@@ -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