aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-03-24 09:51:35 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-03-24 09:51:35 -0500
commit05eee632f863c8d31f364c2f139bebb0b2f8b0b2 (patch)
tree107042f50812a6d97d100298847a8db3ae803f00
parent9430b957e43575df73fec2054079cfef2ef589f4 (diff)
downloadmediagoblin-05eee632f863c8d31f364c2f139bebb0b2f8b0b2.tar.lz
mediagoblin-05eee632f863c8d31f364c2f139bebb0b2f8b0b2.tar.xz
mediagoblin-05eee632f863c8d31f364c2f139bebb0b2f8b0b2.zip
Adding documentation on what the $need_arg code in runtests.sh does
-rwxr-xr-xruntests.sh14
1 files 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"