summaryrefslogtreecommitdiff
path: root/openerpcommand
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2014-01-31 12:48:28 +0100
committerXavier Morel <xmo@openerp.com>2014-01-31 12:48:28 +0100
commit830618d871a8eb7b8e919fcdc6994edc6c35dbab (patch)
treecd26d8d6f0c7a8bb8afdbf18ebf58f39fabcb186 /openerpcommand
parent46cbf22efbfab6bc728694d3850a229fdf0d8179 (diff)
[IMP] oe: get db password from config file
bzr revid: xmo@openerp.com-20140131114828-b90z3pxql63ky6gp
Diffstat (limited to 'openerpcommand')
-rw-r--r--openerpcommand/run_tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openerpcommand/run_tests.py b/openerpcommand/run_tests.py
index 3e9fec5030c..7e23f3edee3 100644
--- a/openerpcommand/run_tests.py
+++ b/openerpcommand/run_tests.py
@@ -101,11 +101,11 @@ def run(args):
import openerp
config = openerp.tools.config
+ config.load()
+
config['db_name'] = args.database
if args.port:
config['xmlrpc_port'] = int(args.port)
- config['admin_passwd'] = 'admin'
- config['db_password'] = 'a2aevl8w' # TODO from .openerpserverrc
if args.addons:
args.addons = args.addons.replace(':',',').split(',')