Be more forgiving in detecting Modules Loaded

There is no problem yet, but this line is prone to future errors.

This line catches all cases without having to pool the filesystem.
This commit is contained in:
Sandy 2014-07-14 18:01:12 -04:00
parent a1e4a428f1
commit c0eadd5dac

View File

@ -651,8 +651,7 @@ class runbot_build(osv.osv):
v = {
'job_end': time.strftime(openerp.tools.DEFAULT_SERVER_DATETIME_FORMAT, log_time),
}
logger = 'odoo.modules.loading' if os.path.exists(build.path('odoo')) else 'openerp.modules.loading'
if grep(log_all, "%s: Modules loaded." % logger):
if grep(log_all, ".modules.loading: Modules loaded."):
if rfind(log_all, _re_error):
v['result'] = "ko"
elif rfind(log_all, _re_warning):