[FIX] openerp-server: missing variable in startup script for --test-file option
bzr revid: odo@openerp.com-20121029173321-clq0p2z2dh3ld8mu
This commit is contained in:
parent
46e94a312c
commit
6dd4a1ae5f
|
@ -101,6 +101,7 @@ def preload_registry(dbname):
|
||||||
def run_test_file(dbname, test_file):
|
def run_test_file(dbname, test_file):
|
||||||
""" Preload a registry, possibly run a test file, and start the cron."""
|
""" Preload a registry, possibly run a test file, and start the cron."""
|
||||||
try:
|
try:
|
||||||
|
config = openerp.tools.config
|
||||||
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
|
db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=config['init'] or config['update'], pooljobs=False)
|
||||||
cr = db.cursor()
|
cr = db.cursor()
|
||||||
_logger.info('loading test file %s', test_file)
|
_logger.info('loading test file %s', test_file)
|
||||||
|
|
Loading…
Reference in New Issue