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
1=== modified file 'checkbox-old/debian/changelog'
2--- checkbox-old/debian/changelog 2013-06-28 14:03:18 +0000
3+++ checkbox-old/debian/changelog 2013-07-01 15:40:40 +0000
4@@ -1,6 +1,8 @@
5 checkbox (0.16.6) UNRELEASED; urgency=low
6
7- * Incremented changelog
8+ [ Brendan Donegan ]
9+ * plugins/launchpad_report.py - Don't include attachments which have a status
10+ of 'unsupported' (LP: #1196531)
11
12 -- Brendan Donegan <brendan.donegan@canonical.com> Fri, 28 Jun 2013 15:02:58 +0100
13
14
15=== modified file 'checkbox-old/plugins/launchpad_report.py'
16--- checkbox-old/plugins/launchpad_report.py 2013-05-29 07:50:30 +0000
17+++ checkbox-old/plugins/launchpad_report.py 2013-07-01 15:40:40 +0000
18@@ -98,7 +98,8 @@
19 elif "udev_attachment" in name:
20 self._report["hardware"]["udev"] = attachment["data"]
21
22- elif all(c in printable for c in attachment["data"]):
23+ elif (all(c in printable for c in attachment["data"]) and
24+ attachment['status'] != 'unsupported'):
25 self._report["context"].append({
26 "command": attachment["command"],
27 "data": attachment["data"]})

Subscribers

People subscribed via source and target branches