From f8614c4abd4795ffcc0d7fe360dd7ccd03d02fc5 Mon Sep 17 00:00:00 2001 From: Christophe Monniez Date: Tue, 19 Nov 2019 14:54:16 +0100 Subject: [PATCH] [FIX] runbot: grep for enhanced test-tag for auto_tags When using auto_tags, most of the time, the enhanced version are used. For example, using "-:TestPoSStock" to disable the test class. If the tested Odoo version does not support this kind of tag, they are considered as simple tags, thus disabling all tests. It 's the case for Odoo saas-11.3. With this commit, the auto_tags are only used on Odoo versions that support the new test tags. --- 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 dbbabdaa..397e218c 100644 --- a/runbot/models/build_config.py +++ b/runbot/models/build_config.py @@ -334,7 +334,7 @@ class ConfigStep(models.Model): else: build._log('test_all', 'Test tags given but not supported') elif self.enable_auto_tags and self.test_enable: - if grep(config_path, "test-tags"): + if grep(config_path, "[/module][:class]"): auto_tags = self.env['runbot.build.error'].disabling_tags() if auto_tags: test_tags = ','.join(auto_tags)