Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id BA6C17F37 for ; Mon, 11 Mar 2013 18:36:59 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 6616EAC002 for ; Mon, 11 Mar 2013 16:36:56 -0700 (PDT) Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by cuda.sgi.com with ESMTP id CNYDhIKVpFzI4WkL for ; Mon, 11 Mar 2013 16:36:55 -0700 (PDT) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 126E7A3A78 for ; Tue, 12 Mar 2013 00:36:54 +0100 (CET) From: David Sterba Subject: [PATCH] xfstests: determine path of logger Date: Tue, 12 Mar 2013 00:36:52 +0100 Message-Id: <1363045012-21119-1-git-send-email-dsterba@suse.cz> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: David Sterba The path of the syslog writer utility 'logger' is hardcoded and not always correct, use set_prog_path. Signed-off-by: David Sterba --- check | 2 +- common.config | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/check b/check index c20179c..9a5b256 100755 --- a/check +++ b/check @@ -243,7 +243,7 @@ do start=`_wallclock` $timestamp && echo -n " ["`date "+%T"`"]" [ ! -x $seq ] && chmod u+x $seq # ensure we can run it - [ -x /usr/bin/logger ] && /usr/bin/logger "run xfstest $seq" + $LOGGER_PROG "run xfstest $seq" ./$seq >$tmp.rawout 2>&1 sts=$? $timestamp && _timestamp diff --git a/common.config b/common.config index a0b017d..ed0f44c 100644 --- a/common.config +++ b/common.config @@ -177,6 +177,7 @@ export DUMPE2FS_PROG="`set_prog_path dumpe2fs`" export FIO_PROG="`set_prog_path fio`" export FILEFRAG_PROG="`set_prog_path filefrag`" export E4DEFRAG_PROG="`set_prog_path e4defrag`" +export LOGGER_PROG="`set_prog_path logger`" # Generate a comparable xfsprogs version number in the form of # major * 10000 + minor * 100 + release -- 1.8.1.4 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs