xfstests: determine path of logger
authorDavid Sterba <dsterba@suse.cz>
Mon, 11 Mar 2013 23:36:52 +0000 (23:36 +0000)
committerRich Johnston <rjohnston@sgi.com>
Tue, 12 Mar 2013 12:47:06 +0000 (07:47 -0500)
The path of the syslog writer utility 'logger' is hardcoded and not
always correct, use set_prog_path.

Signed-off-by: David Sterba <dsterba@suse.cz>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
check
common.config

diff --git a/check b/check
index c20179c4967ea686fc88bf12427cbcb58ed4cd03..9a5b25657a52e1667f5ea171008c3fb1c5b24b79 100755 (executable)
--- 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
index a0b017d7e7a94fb67a02702550c1f380a73999b6..ed0f44c2cec5f19069370b87a392267bfacb2579 100644 (file)
@@ -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