X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Fruntest;h=9f35adea472642eadc302d06122ceb3c13f0cc12;hp=edab16297896398284dc5f24d618aafb6c0358d8;hb=b6823062c9806496b39ff12bf1fbe43ae127c96c;hpb=92009746ef66e8a9a9dc6643845e839e0debaf18 diff --git a/test/runtest b/test/runtest index edab162..9f35ade 100755 --- a/test/runtest +++ b/test/runtest @@ -47,23 +47,25 @@ do This is message number $i ! done +folder +inbox >/dev/null # now run the test set +e +export SHELL="${SHELL:-/bin/sh}" /bin/sh "$1" return_value=$? set -e if [ $return_value -eq 0 ] ; then - printf "Test %s:\tPASS\n" "$1" + printf "Test %-60s\tPASS\n" "$1" exit 0 elif [ $return_value -eq 120 ]; then # indicates test was skipped (eg needed program not found) # test itself should have printed a message about this, # so print nothing here. - : + printf "Test %-60s\tSKIP\n" "$1" exit 2 else - printf "Test %s:\tFAIL\n" "$1" + printf "Test %-60s\tFAIL\n" "$1" exit 1 fi