apenwarr-redo/t/shelltest.do
Avery Pennarun c6020cf1cd t/shelltest.od: quiet some error messages that get printed during testing.
If the error message only triggered a shelltest warning instead of a
failure, then they're harmless, so we might as well silence them when
running 'redo test' (which runs t/shelltest.do, which enables
SHELLTEST_QUIET).  We still want to print them when actually testing out
shelltest.od, though, to help with debugging the script.
2011-05-08 01:25:20 -04:00

9 lines
120 B
Text

set +e
export SHELLTEST_QUIET=1
( . ./shelltest.od )
RV=$?
case $RV in
40) exit 0 ;;
42) exit 0 ;;
*) exit 1 ;;
esac