From 03b82e712a2df91a0011247b5a69beb634f759a2 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Wed, 23 Sep 2020 13:48:57 +0200 Subject: [PATCH] [FIX] runbot: allow to disable screencast globaly --- runbot/models/build_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 2fd292d3..dae7d3fe 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -397,7 +397,7 @@ class ConfigStep(models.Model): if grep(config_path, "--screenshots"): cmd.add_config_tuple('screenshots', '/data/build/tests') - if grep(config_path, "--screencasts"): + if grep(config_path, "--screencasts") and self.env['ir.config_parameter'].sudo().get_param('runbot.enable_screencast', False)): cmd.add_config_tuple('screencasts', '/data/build/tests') cmd.append('--stop-after-init') # install job should always finish