diff options
author | Sami Kerola | 2012-04-01 20:19:30 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-02 13:14:20 +0200 |
commit | 73aa8894791c08d2d308f7874b0d461f049b8cea (patch) | |
tree | 94b814273610a9f42d17863403fb7ce9970a0082 /tests/ts/hwclock | |
parent | rtcwake: only invoke RTC_AIE_ON/OFF ioctls in pairs (diff) | |
download | kernel-qcow2-util-linux-73aa8894791c08d2d308f7874b0d461f049b8cea.tar.gz kernel-qcow2-util-linux-73aa8894791c08d2d308f7874b0d461f049b8cea.tar.xz kernel-qcow2-util-linux-73aa8894791c08d2d308f7874b0d461f049b8cea.zip |
tests: hwclock: locate ntpdate by using path
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/hwclock')
-rwxr-xr-x | tests/ts/hwclock/systohc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/hwclock/systohc b/tests/ts/hwclock/systohc index f58d07e22..401ee937e 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 |