From 73aa8894791c08d2d308f7874b0d461f049b8cea Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 1 Apr 2012 20:19:30 +0200 Subject: [PATCH] tests: hwclock: locate ntpdate by using path Signed-off-by: Sami Kerola --- 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 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 -- 2.47.2