projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d503a8
)
Teach runtests.sh the -n arg.
author
Elrond
<elrond+mediagoblin.org@samba-tng.org>
Sat, 6 Apr 2013 20:56:40 +0000
(22:56 +0200)
committer
Elrond
<elrond+mediagoblin.org@samba-tng.org>
Sat, 6 Apr 2013 20:56:40 +0000
(22:56 +0200)
If you give "-n 8" to runtests, it thinks, it got
"-n" -- a nice option, ignored.
"8" -- Oh! a single test named "8" to run, so no need to
run all the GMG tests.
Well, that's not what we want. So runtests now knows about
-n taking an arg.
runtests.sh
patch
|
blob
|
blame
|
history
diff --git
a/runtests.sh
b/runtests.sh
index cd53da2df9ad5a21f45045f24fb005037ee1058e..382e2fa635dde71225c331300e495c074f7dda0c 100755
(executable)
--- a/
runtests.sh
+++ b/
runtests.sh
@@
-49,9
+49,16
@@
echo "+ CELERY_CONFIG_MODULE=$CELERY_CONFIG_MODULE"
# will try to read all directories, and this turns into a mess!
need_arg=1
+ignore_next=0
for i in "$@"
do
+ if [ "$ignore_next" = 1 ]
+ then
+ ignore_next=0
+ continue
+ fi
case "$i" in
+ -n) ignore_next=1;;
-*) ;;
*) need_arg=0; break ;;
esac