Merge lp:~brendan-donegan/checkbox/bug1196531 into lp:checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2215
Merged at revision: 2218
Proposed branch: lp:~brendan-donegan/checkbox/bug1196531
Merge into: lp:checkbox
Diff against target: 27 lines (+5/-2)
2 files modified
checkbox-old/debian/changelog (+3/-1)
checkbox-old/plugins/launchpad_report.py (+2/-1)
To merge this branch: bzr merge lp:~brendan-donegan/checkbox/bug1196531
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+172351@code.launchpad.net

Description of the change

To try and more sensibly handle the situation where a particular attachment is not relevant to a particular platform, this branch fixes the logic in the launchpad_report plugin to simply not include attachments in the submission.xml whose job state is 'unsupported'

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'checkbox-old/debian/changelog'
--- checkbox-old/debian/changelog 2013-06-28 14:03:18 +0000
+++ checkbox-old/debian/changelog 2013-07-01 15:40:40 +0000
@@ -1,6 +1,8 @@
1checkbox (0.16.6) UNRELEASED; urgency=low1checkbox (0.16.6) UNRELEASED; urgency=low
22
3 * Incremented changelog3 [ Brendan Donegan ]
4 * plugins/launchpad_report.py - Don't include attachments which have a status
5 of 'unsupported' (LP: #1196531)
46
5 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 28 Jun 2013 15:02:58 +01007 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 28 Jun 2013 15:02:58 +0100
68
79
=== modified file 'checkbox-old/plugins/launchpad_report.py'
--- checkbox-old/plugins/launchpad_report.py 2013-05-29 07:50:30 +0000
+++ checkbox-old/plugins/launchpad_report.py 2013-07-01 15:40:40 +0000
@@ -98,7 +98,8 @@
98 elif "udev_attachment" in name:98 elif "udev_attachment" in name:
99 self._report["hardware"]["udev"] = attachment["data"]99 self._report["hardware"]["udev"] = attachment["data"]
100100
101 elif all(c in printable for c in attachment["data"]):101 elif (all(c in printable for c in attachment["data"]) and
102 attachment['status'] != 'unsupported'):
102 self._report["context"].append({103 self._report["context"].append({
103 "command": attachment["command"],104 "command": attachment["command"],
104 "data": attachment["data"]})105 "data": attachment["data"]})

Subscribers

People subscribed via source and target branches