Merge lp:~cr3/checkbox/912546 into lp:checkbox

Proposed by Marc Tardif
Status: Merged
Merged at revision: 1162
Proposed branch: lp:~cr3/checkbox/912546
Merge into: lp:checkbox
Diff against target: 44 lines (+11/-5)
2 files modified
checkbox/parsers/submission.py (+8/-4)
debian/changelog (+3/-1)
To merge this branch: bzr merge lp:~cr3/checkbox/912546
Reviewer Review Type Date Requested Status
Daniel Manrique (community) Approve
Review via email: mp+87697@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Marc Tardif (cr3) wrote :

By the way, this merge request is mostly relevant to checkbox-to-certification. So, once this request is approved, the diff should be backported to 0.12 and packages built in the hardware-certification PPA.

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, merged. thanks for fixing this obscure problem!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox/parsers/submission.py'
2--- checkbox/parsers/submission.py 2011-10-11 20:15:01 +0000
3+++ checkbox/parsers/submission.py 2012-01-05 22:49:26 +0000
4@@ -331,7 +331,10 @@
5 command = child.get("command")
6 if command not in duplicates:
7 duplicates.add(command)
8- result.addContext(child.text, command)
9+ text = child.text
10+ if text is None:
11+ text = ""
12+ result.addContext(text, command)
13 else:
14 self.logger.debug(
15 "Duplicate command found in tag <info>: %s" % command)
16@@ -453,9 +456,10 @@
17 question["targets"].append(target)
18
19 elif sub_tag in ("comment", "command",):
20- data = sub_node.text
21- if data is not None:
22- question[sub_tag] = data.strip()
23+ text = sub_node.text
24+ if text is None:
25+ text = ""
26+ question[sub_tag] = text.strip()
27
28 else:
29 raise AssertionError(
30
31=== modified file 'debian/changelog'
32--- debian/changelog 2012-01-05 16:20:12 +0000
33+++ debian/changelog 2012-01-05 22:49:26 +0000
34@@ -23,7 +23,9 @@
35 * Using title defined in user_interface plugin in GTK interface.
36 * Updated default.whitelist to reflect renamed jobs.
37 * Removed files with non-printable characters from submission.xml.
38-
39+ * Fixed parser for submission files with empty question comments
40+ and context info (LP: #912546)
41+
42 [Daniel Manrique]
43 * Update control files under debian/ to eliminate (most) lintian warnings
44 (LP: #352986)

Subscribers

People subscribed via source and target branches