From 857821e41a5761830c9a3c9d1afd346ac0bf063d Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 13 Aug 2019 14:37:53 +0200 Subject: [PATCH] [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. --- runbot/models/build_config.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 81b8e150..05524576 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -318,6 +318,9 @@ class ConfigStep(models.Model): else: 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 if '--log-level' not in extra_params: cmd.append('--log-level=test')