[FIX] openerp-server: missing variable in startup script for --test-file option

bzr revid: odo@openerp.com-20121029173321-clq0p2z2dh3ld8mu
This commit is contained in:
Olivier Dony 2012-10-29 18:33:21 +01:00
parent 46e94a312c
commit 6dd4a1ae5f
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ def preload_registry(dbname):
def run_test_file(dbname, test_file):
""" Preload a registry, possibly run a test file, and start the cron."""
try:
config = openerp.tools.config
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
cr = db.cursor()
_logger.info('loading test file %s', test_file)