[LTP] [PATCH] cgroup_fj: fixed exit codes in case of not supported tests

Cyril Hrubis chrubis@suse.cz
Thu Sep 24 20:45:51 CEST 2015


Hi!
> @@ -125,8 +125,8 @@ esac
>  ret=$?
>  if [ $ret -eq 0 ]; then
>       tst_resm TPASS "case$i($CASETYPE$CASECMD)    PASS"
> -elif [ $ret -ne 9 ]; then
> +elif [ $ret -ne 32 ]; then
>       tst_resm TFAIL "case$i($CASETYPE $CASECMD)    FAIL"
>  fi
>
> -exit $ret;
> +tst_exit

Unless the whole script is converted to the test.sh the exit $ret must
stay here, otherwise the return status from the test will be always 0.

The rest looks fine.

(CCing new list)

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list