From 05eee632f863c8d31f364c2f139bebb0b2f8b0b2 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 24 Mar 2013 09:51:35 -0500 Subject: [PATCH] Adding documentation on what the $need_arg code in runtests.sh does --- runtests.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/runtests.sh b/runtests.sh index a4ceec2e..fd19caf8 100755 --- a/runtests.sh +++ b/runtests.sh @@ -38,6 +38,16 @@ else exit 1 fi + +CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_tests +export CELERY_CONFIG_MODULE +echo "+ CELERY_CONFIG_MODULE=$CELERY_CONFIG_MODULE" + +# Look to see if the user has specified a specific directory/file to +# run tests out of. If not we'll need to pass along +# mediagoblin/tests/ later very specifically. Otherwise nosetests +# will try to read all directories, and this turns into a mess! + need_arg=1 for i in "$@" do @@ -47,10 +57,6 @@ do esac done -CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_tests -export CELERY_CONFIG_MODULE -echo "+ CELERY_CONFIG_MODULE=$CELERY_CONFIG_MODULE" - if [ "$need_arg" = 1 ] then testdir="$basedir/mediagoblin/tests" -- 2.25.1