On Sat, Jul 27, 2019 at 07:41:13AM +0300, Vitaly Chikunov wrote: > Run `make check' to execute the tests. > Currently only ima_hash, ima_sign, and ima_verify are tested. > > Signed-off-by: Vitaly Chikunov <vt@xxxxxxxxxxxx> > .... > +_evmctl_run() { > + local cmd=$1 out=$1-$$.out > + # Additional parameters: > + # FOR: append to text as 'for $FOR' > + # DEL: additional files to rm if test failed > + > + set -- evmctl $V ${ENGINE:+--engine $ENGINE} "$@" > + echo $YELLOW$TMODE $*$NORM > + eval "$@" >$out 2>&1 > + ret=$? > + > + if [ $ret -ge 126 -a $ret -lt 255 ]; then > + echo $RED > + echo "evmctl $cmd failed hard with ($ret) ${FOR:+for $FOR}" > + sed 's/^/ /' $out > + echo $NORM > + rm $out $DEL > + FOR= DEL= > + return $SKIP Should be `return $HARDFAIL`.