Re: [PATCH 2/2] check: treat _check_{test,scratch}_fs failures as test failures

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Tue, Dec 16, 2014 at 10:27:39AM +1100, Dave Chinner wrote:
> On Tue, Dec 16, 2014 at 01:09:27AM +0800, Eryu Guan wrote:
[snip]
> >  check | 19 ++++++++++---------
> >  1 file changed, 10 insertions(+), 9 deletions(-)
> > 
> > diff --git a/check b/check
> > index 42a1ac2..4cf7070 100755
> > --- a/check
> > +++ b/check
> > @@ -611,6 +611,16 @@ for section in $HOST_OPTIONS_SECTIONS; do
> >  			    err=true
> >  			fi
> >  		    fi
> > +		    try="$try $seqnum"
> > +		    n_try=`expr $n_try + 1`
> > +		    if [ -f ${RESULT_DIR}/require_test ]; then
> > +			_check_test_fs || err=true
> > +			rm -f ${RESULT_DIR}/require_test
> > +		    fi
> > +		    if [ -f ${RESULT_DIR}/require_scratch ]; then
> > +			_check_scratch_fs || err=true
> > +			rm -f ${RESULT_DIR}/require_scratch
> > +		    fi
> >  		fi
> >  
> >  	    fi
> > @@ -623,15 +633,6 @@ for section in $HOST_OPTIONS_SECTIONS; do
> >  		n_bad=`expr $n_bad + 1`
> >  		quick=false
> >  	    fi
> > -	    if [ ! -f $seqres.notrun ]
> > -	    then
> > -		try="$try $seqnum"
> > -		n_try=`expr $n_try + 1`
> > -		test -f ${RESULT_DIR}/require_test && _check_test_fs
> > -		rm -f ${RESULT_DIR}/require_test
> > -		test -f ${RESULT_DIR}/require_scratch && _check_scratch_fs
> > -		rm -f ${RESULT_DIR}/require_scratch
> > -	    fi
> >  
> >  	    seq="after_$seqnum"
> 
> Looks fine as is, but in the interest of slowly cleaning up check,
> can you factor this out into a helper function such as
> "check_filesystems" using 8 space tabs?

Sure, will do in v2.

Thanks,
Eryu
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux