From 1e102b7d7663ee16e36e87633371804926d5b852 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Fri, 8 Nov 2019 15:40:36 +0100 Subject: [PATCH] [FIX] runbot: check support before adding auto-tags --- runbot/models/build_config.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/runbot/models/build_config.py b/runbot/models/build_config.py index 418bfa8f..dbbabdaa 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -334,10 +334,11 @@ class ConfigStep(models.Model): else: build._log('test_all', 'Test tags given but not supported') elif self.enable_auto_tags and self.test_enable: - auto_tags = self.env['runbot.build.error'].disabling_tags() - if auto_tags: - test_tags = ','.join(auto_tags) - cmd.extend(['--test-tags', test_tags]) + if grep(config_path, "test-tags"): + auto_tags = self.env['runbot.build.error'].disabling_tags() + if auto_tags: + test_tags = ','.join(auto_tags) + cmd.extend(['--test-tags', test_tags]) if grep(config_path, "--screenshots"): cmd += ['--screenshots', '/data/build/tests']