[CRIU] [PATCH 2/4] fi: Zdtm preparations for fault injection

Andrew Vagin avagin at odin.com
Tue Sep 29 07:24:17 PDT 2015


On Mon, Sep 28, 2015 at 02:08:06PM +0300, Andrew Vagin wrote:
> > @@ -802,6 +815,22 @@ EOF
> >  				return 0
> >  			fi
> >  
> > +			if [ $FINJ -eq 1 ]; then
> > +				echo "FAULT: $tname dump failed, checking ..."
> > +				"$test".fault "dump"
> > +				fetcode=$?
> > +
> > +				stop_test $tdir $tname
> > +
> > +				if [ "$fetcode" -ne 0 ]; then
> > +					echo "FAULT: $tname dump failed unexpectedly with $retcode/$fetcode"
> > +					return 1
> > +				else
> > +					echo "FAULT: $tname dump failed as expected with $retcode"
> > +					return 0
> > +				fi

You can set dump_only here to check results.

> > +			fi
> > +
> >  			if [ $BATCH_TEST -eq 0 ]; then
> >  				echo WARNING: $tname returned $retcode and left running for debug needs
> >  			else


More information about the CRIU mailing list