mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[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:
parent
6f68db15d6
commit
f8614c4abd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user