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.
This commit is contained in:
Elrond 2013-04-06 22:56:40 +02:00
parent 7d503a897b
commit 0c0f31c4ef

View File

@ -49,9 +49,16 @@ echo "+ CELERY_CONFIG_MODULE=$CELERY_CONFIG_MODULE"
# will try to read all directories, and this turns into a mess! # will try to read all directories, and this turns into a mess!
need_arg=1 need_arg=1
ignore_next=0
for i in "$@" for i in "$@"
do do
if [ "$ignore_next" = 1 ]
then
ignore_next=0
continue
fi
case "$i" in case "$i" in
-n) ignore_next=1;;
-*) ;; -*) ;;
*) need_arg=0; break ;; *) need_arg=0; break ;;
esac esac