Merge pull request #1305 from dirkmueller/totest_redundant

Be more forgiving with ttm ignore comments
This commit is contained in:
Ludwig Nussel 2017-12-20 09:20:31 +01:00 committed by GitHub
commit ba8a357c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: