[FIX] runbot: check support before adding auto-tags

This commit is contained in:
Xavier-Do 2019-11-08 15:40:36 +01:00
parent 0c4d78f497
commit 1e102b7d76

View File

@ -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']