Adding documentation on what the $need_arg code in runtests.sh does
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 24 Mar 2013 14:51:35 +0000 (09:51 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 24 Mar 2013 14:51:35 +0000 (09:51 -0500)
runtests.sh

index a4ceec2e5da5591d5d6a69c4f659016f107ab61c..fd19caf857cc8f2db9afc72927b485531df6c979 100755 (executable)
@@ -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"