From: Alexis Laferrière Date: Tue, 31 Mar 2015 17:27:49 +0000 (-0400) Subject: tests: tests.sh detects directories before trying to execute them X-Git-Tag: v0.7.4~45^2~2 X-Git-Url: http://nitlanguage.org tests: tests.sh detects directories before trying to execute them Signed-off-by: Alexis Laferrière --- diff --git a/tests/tests.sh b/tests/tests.sh index 6c76366..ead5484 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -69,7 +69,9 @@ saferun() *) stop=true esac done - if test -n "$TIME"; then + if test -d "$1"; then + find $1 | sort + elif test -n "$TIME"; then $TIME -o "$o" $a $TIMEOUT "$@" else if test -n "$a"; then echo 0 >> "$o"; else echo 0 > "$o"; fi