Merge lp:~kelemeng/checkbox/904876 into lp:checkbox

Proposed by Gabor Kelemen
Status: Merged
Merged at revision: 1151
Proposed branch: lp:~kelemeng/checkbox/904876
Merge into: lp:checkbox
Diff against target: 64 lines (+8/-5)
4 files modified
checkbox/user_interface.py (+1/-1)
plugins/apport_prompt.py (+4/-3)
plugins/shell_test.py (+1/-1)
po/POTFILES.in (+2/-0)
To merge this branch: bzr merge lp:~kelemeng/checkbox/904876
Reviewer Review Type Date Requested Status
Marc Tardif (community) Approve
Review via email: mp+85929@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Daniel Manrique (roadmr) wrote :

Thanks Gabor!

I just have a comment, would it make sense to name the variable for the string "test_name", or is just "name" clear enough? this is on line 23-24 of the diff.

Revision history for this message
Marc Tardif (cr3) wrote :

Good catch, thanks for the fix! I added an entry for you in the changelog while merging the changes.

review: Approve
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Thanks for the quick reply!

Daniel: I think this is enough, it's obvious to me what it talks about. This change is necessary not for clarification, but the ability to reorder the variables.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox/user_interface.py'
2--- checkbox/user_interface.py 2010-04-16 20:47:07 +0000
3+++ checkbox/user_interface.py 2011-12-15 18:32:34 +0000
4@@ -133,7 +133,7 @@
5 os.close(w)
6 (pid, status) = os.wait()
7 if status:
8- text = _("Unable to start web browser to open %s." % url)
9+ text = _("Unable to start web browser to open %s.") % url
10 message = os.fdopen(r).readline()
11 if message:
12 text += "\n" + message
13
14=== modified file 'plugins/apport_prompt.py'
15--- plugins/apport_prompt.py 2011-10-06 20:23:31 +0000
16+++ plugins/apport_prompt.py 2011-12-15 18:32:34 +0000
17@@ -224,10 +224,11 @@
18 return
19
20 if test.get("suite"):
21- failed_test_message = _("Test %s from suite %s failed." %
22- (test["name"], test["suite"]))
23+ failed_test_message = _("Test %(name)s from suite %(suite)s failed.") % {
24+ 'name' : test["name"],
25+ 'suite:' : test["suite"]}
26 else:
27- failed_test_message = _("Test %s failed." % test["name"])
28+ failed_test_message = _("Test %s failed.") % test["name"]
29 failed_test_message += "\n" + _("Do you want to report a bug?")
30
31 response = interface.show_info(failed_test_message,
32
33=== modified file 'plugins/shell_test.py'
34--- plugins/shell_test.py 2011-05-19 19:04:52 +0000
35+++ plugins/shell_test.py 2011-12-15 18:32:34 +0000
36@@ -49,7 +49,7 @@
37 event_id = self._manager.reactor.call_on("message-result", message_result, -100)
38
39 interface.show_progress(
40- _("Running %s..." % test["name"]), self._manager.reactor.fire,
41+ _("Running %s...") % test["name"], self._manager.reactor.fire,
42 "message-exec", test)
43
44 self._manager.reactor.cancel_call(event_id)
45
46=== modified file 'po/POTFILES.in'
47--- po/POTFILES.in 2011-10-18 20:57:05 +0000
48+++ po/POTFILES.in 2011-12-15 18:32:34 +0000
49@@ -43,6 +43,7 @@
50 [type: gettext/rfc822deb] jobs/user_apps.txt.in
51 [type: gettext/rfc822deb] jobs/wireless.txt.in
52 checkbox/application.py
53+checkbox/job.py
54 checkbox/lib/signal.py
55 checkbox_cli/cli_interface.py
56 checkbox_urwid/urwid_interface.py
57@@ -54,6 +55,7 @@
58 plugins/intro_prompt.py
59 plugins/launchpad_exchange.py
60 plugins/launchpad_prompt.py
61+plugins/launchpad_report.py
62 plugins/lock_prompt.py
63 plugins/recover_prompt.py
64 plugins/report_prompt.py

Subscribers

People subscribed via source and target branches