From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 0066F7F58 for ; Wed, 16 Apr 2014 18:40:38 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 7CD9BAC001 for ; Wed, 16 Apr 2014 16:40:38 -0700 (PDT) Received: from ipmail04.adl6.internode.on.net (ipmail04.adl6.internode.on.net [150.101.137.141]) by cuda.sgi.com with ESMTP id 2yztsMiW4nRSHSrE for ; Wed, 16 Apr 2014 16:40:36 -0700 (PDT) Date: Thu, 17 Apr 2014 09:40:27 +1000 From: Dave Chinner Subject: Re: [PATCH] xfstests: log running test to dmesg Message-ID: <20140416234027.GR15995@dastard> References: <534EF81D.20205@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <534EF81D.20205@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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: Eric Sandeen Cc: xfs-oss On Wed, Apr 16, 2014 at 04:37:33PM -0500, Eric Sandeen wrote: > We already log the running test to system logs via "logger" > but viro pointed out that we can use /dev/kmsg to insert it > into dmesg as well. When looking at the serial console that > could be pretty useful. > > Thanks to viro for the test -w suggestion too. > > Signed-off-by: Eric Sandeen > --- > > diff --git a/check b/check > index 268417c..09b2320 100755 > --- a/check > +++ b/check > @@ -457,6 +457,7 @@ do > $timestamp && echo -n " ["`date "+%T"`"]" > [ ! -x $seq ] && chmod u+x $seq # ensure we can run it > $LOGGER_PROG "run xfstest $seqnum" > + test -w /dev/kmsg && echo "run xfstest $seqnum" > /dev/kmsg > ./$seq >$tmp.rawout 2>&1 > sts=$? > $timestamp && _timestamp Might it be worthwhile adding a "_log" function that can take an arbitrary string so in future it is easy to add new log messages? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs