[PATCH 1/3] tests: hwclock: locate ntpdate by using path

Sami Kerola
2012-04-01T18:20:30Z

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