From d432e56661a64d7e0aba9abf4503b80d663dfbcb Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 7 Feb 2014 15:32:41 +0100 Subject: [PATCH] [FIX] website: for activate test on runbot bzr revid: chm@openerp.com-20140207143241-e4u7ikvgbl0f980d --- addons/website/tests/test_ui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/website/tests/test_ui.py b/addons/website/tests/test_ui.py index eafe791c204..e79a2eb13ec 100644 --- a/addons/website/tests/test_ui.py +++ b/addons/website/tests/test_ui.py @@ -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'