output all failures in totest manager

This commit is contained in:
Stephan Kulow 2014-09-08 10:45:46 +02:00
parent ca0f6648c8
commit 8dfc26f8db
2 changed files with 7 additions and 3 deletions

View File

@ -103,11 +103,12 @@ def tt_overall_result(self, snapshot):
'opensuse-FTT-GNOME-Live-x86_64-Build-gnome-live@USBboot_64', # broken in 20140828 'opensuse-FTT-GNOME-Live-x86_64-Build-gnome-live@USBboot_64', # broken in 20140828
] ]
if len(jobs) < 80: # not yet scheduled if len(jobs) < 90: # not yet scheduled
print "we have only", len(jobs), "jobs" print "we have only", len(jobs), "jobs"
return QAResult.InProgress return QAResult.InProgress
number_of_fails = 0 number_of_fails = 0
in_progress = False
for job in jobs: for job in jobs:
#print json.dumps(job, sort_keys=True, indent=4) #print json.dumps(job, sort_keys=True, indent=4)
if job['result'] == 'failed' or job['result'] == 'incomplete' : if job['result'] == 'failed' or job['result'] == 'incomplete' :
@ -125,13 +126,16 @@ def tt_overall_result(self, snapshot):
elif job['result'] == 'passed': elif job['result'] == 'passed':
continue continue
elif job['result'] == 'none': elif job['result'] == 'none':
return QAResult.InProgress in_progress = True
else: else:
raise Exception(job['result']) raise Exception(job['result'])
if number_of_fails > 0: if number_of_fails > 0:
return QAResult.Failed return QAResult.Failed
if in_progress:
return QAResult.InProgress
if known_failures: if known_failures:
print "Some are now passing", known_failures print "Some are now passing", known_failures
return QAResult.Passed return QAResult.Passed

View File

@ -81,7 +81,7 @@ class CleanupRings(object):
self.find_inner_ring_links(prj) self.find_inner_ring_links(prj)
self.fill_pkgdeps(prj, 'standard', 'x86_64') self.fill_pkgdeps(prj, 'standard', 'x86_64')
if prj == 'openSUSE:{}:Rings:1-MinimalX': if prj == 'openSUSE:{}:Rings:1-MinimalX'.format(self.api.opensuse):
url = makeurl(self.api.apiurl, ['build', prj, 'images', 'x86_64', 'Test-DVD-x86_64', '_buildinfo']) url = makeurl(self.api.apiurl, ['build', prj, 'images', 'x86_64', 'Test-DVD-x86_64', '_buildinfo'])
root = ET.parse(http_GET(url)).getroot() root = ET.parse(http_GET(url)).getroot()
for bdep in root.findall('bdep'): for bdep in root.findall('bdep'):