Merge lp:~brian-murray/ubuntu-archive-tools/restore-autopkgtest-results into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 978
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/restore-autopkgtest-results
Merge into: lp:ubuntu-archive-tools
Diff against target: 21 lines (+7/-5)
1 file modified
sru-report (+7/-5)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/restore-autopkgtest-results
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+273915@code.launchpad.net

Description of the change

Fix parsing of yaml for its new layout.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Brian!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sru-report'
2--- sru-report 2015-08-24 17:43:57 +0000
3+++ sru-report 2015-10-08 20:07:12 +0000
4@@ -653,11 +653,13 @@
5 if pkg in pkg_excuses:
6 for excuse in excuses_data['sources']:
7 if excuse['source'] == pkg:
8- for line in excuse['excuses']:
9- if 'Regression' not in line and \
10- 'in progress' not in line:
11- continue
12- srus[release][pkg]['autopkg_fails'].append(line)
13+ if 'autopkgtest' not in excuse['tests']:
14+ continue
15+ for testpkg in excuse['tests']['autopkgtest']:
16+ for arch in excuse['tests']['autopkgtest'][testpkg]:
17+ if excuse['tests']['autopkgtest'][testpkg][arch][0] == 'REGRESSION':
18+ link = excuse['tests']['autopkgtest'][testpkg][arch][1]
19+ srus[release][pkg]['autopkg_fails'].append('Regression in autopkgtest for <a href="%s">%s (%s)</a>' % (link, testpkg, arch))
20
21 return srus
22

Subscribers

People subscribed via source and target branches