Adding documentation on what the $need_arg code in runtests.sh does
This commit is contained in:
parent
9430b957e4
commit
05eee632f8
14
runtests.sh
14
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user