Merge lp:~brian-murray/ubuntu-archive-tools/link-to-autopkgtest-page into lp:ubuntu-archive-tools

Proposed by Brian Murray
Status: Merged
Merged at revision: 987
Proposed branch: lp:~brian-murray/ubuntu-archive-tools/link-to-autopkgtest-page
Merge into: lp:ubuntu-archive-tools
Diff against target: 17 lines (+7/-1)
1 file modified
sru-report (+7/-1)
To merge this branch: bzr merge lp:~brian-murray/ubuntu-archive-tools/link-to-autopkgtest-page
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+285141@code.launchpad.net

Description of the change

Create links to pages like http://autopkgtest.ubuntu.com/packages/n/nagios3/trusty/ppc64el/ so you can learn about the history of the tests.

To post a comment you must log in.

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-10-08 20:04:52 +0000
3+++ sru-report 2016-02-05 02:27:41 +0000
4@@ -659,7 +659,13 @@
5 for arch in excuse['tests']['autopkgtest'][testpkg]:
6 if excuse['tests']['autopkgtest'][testpkg][arch][0] == 'REGRESSION':
7 link = excuse['tests']['autopkgtest'][testpkg][arch][1]
8- srus[release][pkg]['autopkg_fails'].append('Regression in autopkgtest for <a href="%s">%s (%s)</a>' % (link, testpkg, arch))
9+ testpkg_name = testpkg.split(' ')[0]
10+ if testpkg_name.startswith('lib'):
11+ testpkg_idx = testpkg_name[:3]
12+ else:
13+ testpkg_idx = testpkg_name[0]
14+ autopkg_url = 'http://autopkgtest.ubuntu.com/packages/%s/%s/%s/%s/' % (testpkg_idx, testpkg_name, release, arch)
15+ srus[release][pkg]['autopkg_fails'].append('Regression in autopkgtest for <a href="%s">%s (%s)</a>: <a href="%s">test log</a>' % (autopkg_url, testpkg, arch, link))
16
17 return srus
18

Subscribers

People subscribed via source and target branches