[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.
This commit is contained in:
Christophe Monniez 2019-11-19 14:54:16 +01:00
parent 6f68db15d6
commit f8614c4abd

View File

@ -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)