diff --git a/releng/inc/releng_getopts_ts.inc b/releng/inc/releng_getopts_ts.inc index 312d8c07..6a1b6fdc 100644 --- a/releng/inc/releng_getopts_ts.inc +++ b/releng/inc/releng_getopts_ts.inc @@ -200,12 +200,9 @@ if [ x"$CLEANUP" != x"0" -a x"$CLEANUP" != x"1" ]; then fi -# ts B10714 I do not see much sense in flat failure. -# The tests should rather simulate an error condition -# and then let act their error reporting facilities -# if they have some. -# if [ x"$SIMULATE_FAILURE" != x"0" -a x"$SIMULATE_FAILURE" != x"1" ]; then -# print_help -# printf "\n${SELF}: -f simulate failure.\n\n" -# exit 31 -# fi +# <<< This cannot happen if $no_getopts = 1 +if [ x"$SIMULATE_FAILURE" != x"0" -a x"$SIMULATE_FAILURE" != x"1" ]; then + print_help + printf "\n${SELF}: -f simulate failure.\n\n" + exit 31 +fi