Be more forgiving with ttm ignore comments

accept @ttm: ignore also as valid input
This commit is contained in:
Dirk Mueller 2017-12-19 10:23:41 +01:00
parent 8e0339774f
commit dce16121b2

View File

@ -245,7 +245,7 @@ class ToTestBase(object):
refs.add(str(ref))
if comment['userName'] == 'ttm' and comment['text'] == 'label:unknown_failure':
labeled = comment['id']
if comment['text'].find('@ttm ignore') >= 0:
if re.search(r'@ttm:? ignore', comment['text']):
to_ignore = True
ignored = len(refs) > 0
for ref in refs: