aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-06 22:56:40 +0200
committerElrond <elrond+mediagoblin.org@samba-tng.org>2013-04-06 22:56:40 +0200
commit0c0f31c4efd2b4d849aaf8efaee7ecf6829d4f6c (patch)
treeb63f3a8ef139e7f32a0e798257dc65a9a3b506c9
parent7d503a897bddfadcd98d278bdb648503485a19de (diff)
downloadmediagoblin-0c0f31c4efd2b4d849aaf8efaee7ecf6829d4f6c.tar.lz
mediagoblin-0c0f31c4efd2b4d849aaf8efaee7ecf6829d4f6c.tar.xz
mediagoblin-0c0f31c4efd2b4d849aaf8efaee7ecf6829d4f6c.zip
Teach runtests.sh the -n arg.
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.
-rwxr-xr-xruntests.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh
index cd53da2d..382e2fa6 100755
--- 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