Moves the django runserver log to the Hudson workspace for easy inspection
This commit is contained in:
Родитель
b3555f367a
Коммит
c14e5f3d1c
|
@ -43,6 +43,9 @@ class Zamboni(Plugin):
|
|||
'This must match the port '
|
||||
'configured in your --jstests-suite URL. '
|
||||
'Default: %default')
|
||||
parser.add_option('--zamboni-log', default=None,
|
||||
help='Log filename for the manage.py runserver '
|
||||
'command. Logs to a temp file by default.')
|
||||
self.parser = parser
|
||||
|
||||
def configure(self, options, conf):
|
||||
|
@ -54,6 +57,7 @@ class Zamboni(Plugin):
|
|||
['python', 'manage.py', 'runserver',
|
||||
'%s:%s' % (self.options.zamboni_host,
|
||||
self.options.zamboni_port)],
|
||||
logfile=self.options.zamboni_log,
|
||||
cwd=ROOT)
|
||||
self.zamboni.startup()
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@ cd $WORKSPACE
|
|||
VENV=$WORKSPACE/venv
|
||||
VENDOR=$WORKSPACE/vendor
|
||||
LOCALE=$WORKSPACE/locale
|
||||
LOG=$WORKSPACE/jstests-runserver.log
|
||||
|
||||
echo "Starting build on executor $EXECUTOR_NUMBER..." `date`
|
||||
|
||||
|
@ -81,8 +82,9 @@ python manage.py syncdb --noinput
|
|||
|
||||
echo "Starting JS tests..." `date`
|
||||
|
||||
rm $LOG
|
||||
# NOTE: the host value here needs to match the 'zambnoi' suite in jstestnet
|
||||
cd scripts
|
||||
python run_jstests.py -v --with-xunit --with-zamboni --zamboni-host sm-hudson01 --with-jstests --jstests-server http://jstestnet.farmdev.com/ --jstests-suite zamboni --jstests-browsers firefox --debug nose.plugins.jstests
|
||||
python run_jstests.py -v --with-xunit --with-zamboni --zamboni-host sm-hudson01 --zamboni-log $LOG --with-jstests --jstests-server http://jstestnet.farmdev.com/ --jstests-suite zamboni --jstests-browsers firefox --debug nose.plugins.jstests
|
||||
|
||||
echo 'shazam!'
|
||||
|
|
Загрузка…
Ссылка в новой задаче