summaryrefslogtreecommitdiff
path: root/openerpcommand
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2014-02-11 23:48:46 +0100
committerChristophe Simonis <chs@openerp.com>2014-02-11 23:48:46 +0100
commit295743b1c19b8e32ebc7adadf895367690269644 (patch)
tree359a10159f039121f6b9610406779e760418eaf0 /openerpcommand
parent6dd6035509241b66e38dc48795849412e84ff6ae (diff)
[IMP] oe initialize must take the port as parameter (for http tests)
bzr revid: chs@openerp.com-20140211224846-waor2hz1fkw1dml8
Diffstat (limited to 'openerpcommand')
-rw-r--r--openerpcommand/initialize.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openerpcommand/initialize.py b/openerpcommand/initialize.py
index 3723e9f5c01..dfa14f7b9dd 100644
--- a/openerpcommand/initialize.py
+++ b/openerpcommand/initialize.py
@@ -79,6 +79,8 @@ def run(args):
config['log_handler'] = [':INFO']
config['test_enable'] = True
config['without_demo'] = False
+ if args.port:
+ config['xmlrpc_port'] = int(args.port)
else:
config['log_handler'] = [':CRITICAL']
config['test_enable'] = False
@@ -124,6 +126,8 @@ def add_parser(subparsers):
parser.add_argument('-d', '--database', metavar='DATABASE',
**common.required_or_default('DATABASE', 'the database to create'))
common.add_addons_argument(parser)
+ parser.add_argument('-P', '--port', metavar='PORT',
+ **common.required_or_default('PORT', 'the server port'))
parser.add_argument('--module', metavar='MODULE', action='append',
help='specify a module to install'
' (this option can be repeated)')