[FIX] website: for activate test on runbot

bzr revid: chm@openerp.com-20140207143241-e4u7ikvgbl0f980d
This commit is contained in:
Christophe Matthieu 2014-02-07 15:32:41 +01:00
parent 598d811ea7
commit d432e56661
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ class WebsiteUiSuite(unittest.TestSuite):
self._options['timeout'] = self._timeout
self._options['port'] = tools.config.get('xmlrpc_port', 80)
self._options['db'] = tools.config.get('db_name', '')
# FIX for runbot test
if hasattr(os, 'uname') and os.uname()[1].startswith('runbot.'):
self._options['host'] = tools.config.get('db_name', '') + ".runbot.openerp.com"
if 'user' not in self._options:
self._options['user'] = 'admin'
self._options['password'] = 'admin'