From: Sami Kerola Date: Sun, 1 Apr 2012 18:19:30 +0000 (+0200) Subject: tests: hwclock: locate ntpdate by using path X-Git-Tag: v2.22-rc1~565 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73aa8894791c08d2d308f7874b0d461f049b8cea;p=thirdparty%2Futil-linux.git tests: hwclock: locate ntpdate by using path Signed-off-by: Sami Kerola --- diff --git a/tests/ts/hwclock/systohc b/tests/ts/hwclock/systohc index f58d07e22e..401ee937ed 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