before test execution, print test number to syslog
authorStefan Behrens <sbehrens@giantdisaster.de>
Thu, 8 Mar 2012 22:27:16 +0000 (16:27 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 8 Mar 2012 22:28:31 +0000 (16:28 -0600)
When the xfstests are executed in a batch (like "check 001-299")
and produce syslog output, it is helpful to know which test was
causing the output. Therefore each time a test is started, a
syslog message is generated that contains the number of the
xfstest.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
check

diff --git a/check b/check
index f7920097d1836471b0e7f6f15de7d3593b86571b..a4af0f68d610484cb44d15e55eddafe398624c14 100755 (executable)
--- a/check
+++ b/check
@@ -241,6 +241,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"
        ./$seq >$tmp.rawout 2>&1
        sts=$?
        $timestamp && _timestamp