nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d0367d
)
tests: tests.sh detects directories before trying to execute them
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 31 Mar 2015 17:27:49 +0000
(13:27 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Wed, 1 Apr 2015 11:36:17 +0000
(07:36 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
tests/tests.sh
patch
|
blob
|
history
diff --git
a/tests/tests.sh
b/tests/tests.sh
index
6c76366
..
ead5484
100755
(executable)
--- 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