[IMP] runbot: use the odoo screenshots args

Since odoo/0dc4a63e2 the screenshots arguments can be used to specify
where to save sceenshots.
With this commit, the argument is used if available.
This commit is contained in:
Christophe Monniez 2019-08-13 14:37:53 +02:00
parent 13ca8b98cf
commit 857821e41a

View File

@ -318,6 +318,9 @@ class ConfigStep(models.Model):
else: else:
build._log('test_all', 'Test tags given but not supported', level='WARNING') build._log('test_all', 'Test tags given but not supported', level='WARNING')
if grep(config_path, "--screenshots"):
cmd += ['--screenshots', '/data/build/tests']
cmd.append('--stop-after-init') # install job should always finish cmd.append('--stop-after-init') # install job should always finish
if '--log-level' not in extra_params: if '--log-level' not in extra_params:
cmd.append('--log-level=test') cmd.append('--log-level=test')