Detect running state in openQA report.

This commit is contained in:
Alberto Planas 2014-07-09 09:38:54 +02:00
parent 33a0e224a4
commit a7c9c5717f

View File

@ -76,8 +76,10 @@ class CheckCommand(object):
# openQA results # openQA results
if not project['openqa_jobs']: if not project['openqa_jobs']:
report.append(' - No openQA result yet') report.append(' - No openQA result yet')
report.extend(" - openQA's overall status is %s for https://openqa.opensuse.org/tests/%s" % (job['result'], job['id']) for job in project['openqa_jobs']:
for job in project['openqa_jobs'] if job['result'] != 'passed') if job['result'] != 'passed':
qa_result = job['result'] if job['result'] != 'none' else 'running'
report.append(" - openQA's overall status is %s for https://openqa.opensuse.org/tests/%s" % (qa_result, job['id']))
# XXX TODO - report the failling modules # XXX TODO - report the failling modules
for subproject in project['subprojects']: for subproject in project['subprojects']: