Labeled the job only the job has the bugref exists

This commit is contained in:
Max Lin 2017-05-05 16:34:12 +08:00
parent 75ee7ef3e1
commit 6fe6ec6896

View File

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