From: Stefan Behrens Date: Thu, 8 Mar 2012 22:27:16 +0000 (-0600) Subject: before test execution, print test number to syslog X-Git-Tag: v2022.05.01~3617 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=4f12ea5a4ecd803060993bdde86a0fe4f99c72d1 before test execution, print test number to syslog 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 Reviewed-by: Dave Chinner Signed-off-by: Eric Sandeen --- diff --git a/check b/check index f7920097..a4af0f68 100755 --- 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