[FIX] runbot: ensure every arguments is a string when spawning processes

This commit is contained in:
Christophe Simonis 2015-07-31 16:48:40 +02:00
parent edf5712fb3
commit 231e456e3b

View File

@ -861,7 +861,7 @@ class runbot_build(osv.osv):
cmd, mods = build.cmd()
if grep(build.server("tools/config.py"), "test-enable"):
cmd.append("--test-enable")
cmd += ['-d', '%s-all' % build.dest, '-i', mods, '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
cmd += ['-d', '%s-all' % build.dest, '-i', openerp.tools.ustr(mods), '--stop-after-init', '--log-level=test', '--max-cron-threads=0']
# reset job_start to an accurate job_20 job_time
build.write({'job_start': now()})
return self.spawn(cmd, lock_path, log_path, cpu_limit=2100)