Merge pull request #957 from DimStar77/ttm-dry

totest-manager: do not post on dry runs
This commit is contained in:
Ludwig Nussel 2017-06-19 16:52:05 +02:00 committed by GitHub
commit 0ec8b1f294

View File

@ -237,7 +237,7 @@ class ToTestBase(object):
if not ignored:
number_of_fails += 1
if not labeled and len(refs) > 0:
if not labeled and len(refs) > 0 and not self.dryrun:
data = {'text': 'label:unknown_failure'}
self.openqa.openqa_request(
'POST', 'jobs/%s/comments' % job['id'], data=data)