Skip to content

Commit

Permalink
output all failures in totest manager
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Sep 8, 2014
1 parent ca0f664 commit 8dfc26f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions osc-totest.py
Expand Up @@ -103,11 +103,12 @@ def tt_overall_result(self, snapshot):
'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"
return QAResult.InProgress

number_of_fails = 0
in_progress = False
for job in jobs:
#print json.dumps(job, sort_keys=True, indent=4)
if job['result'] == 'failed' or job['result'] == 'incomplete' :
Expand All @@ -125,13 +126,16 @@ def tt_overall_result(self, snapshot):
elif job['result'] == 'passed':
continue
elif job['result'] == 'none':
return QAResult.InProgress
in_progress = True
else:
raise Exception(job['result'])

if number_of_fails > 0:
return QAResult.Failed

if in_progress:
return QAResult.InProgress

if known_failures:
print "Some are now passing", known_failures
return QAResult.Passed
Expand Down
2 changes: 1 addition & 1 deletion osclib/cleanup_rings.py
Expand Up @@ -81,7 +81,7 @@ def check_depinfo_ring(self, prj, nextprj):
self.find_inner_ring_links(prj)
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'])
root = ET.parse(http_GET(url)).getroot()
for bdep in root.findall('bdep'):
Expand Down

0 comments on commit 8dfc26f

Please sign in to comment.