Merge lp:~roadmr/ubuntu/precise/checkbox/0.13.8 into lp:ubuntu/precise/checkbox

Proposed by Daniel Manrique
Status: Merged
Merge reported by: Martin Pitt
Merged at revision: not available
Proposed branch: lp:~roadmr/ubuntu/precise/checkbox/0.13.8
Merge into: lp:ubuntu/precise/checkbox
Diff against target: 216 lines (+73/-12)
10 files modified
checkbox/dispatcher.py (+18/-3)
checkbox/user_interface.py (+7/-1)
debian/changelog (+30/-0)
jobs/audio.txt.in (+2/-2)
jobs/power-management.txt.in (+1/-0)
jobs/usb.txt.in (+1/-0)
qt/frontend/qtfront.ui (+1/-1)
scripts/audio_test (+1/-1)
scripts/camera_test (+5/-1)
scripts/network_check (+7/-3)
To merge this branch: bzr merge lp:~roadmr/ubuntu/precise/checkbox/0.13.8
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+127879@code.launchpad.net

Description of the change

This merge contains some bug fixes we'd like to have on an SRU for Checkbox on Ubuntu 12.04. SRU criteria are presented in each bug's description.

Thanks!

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Sponsored. Closing MP manually as this will be the precise-proposed branch, and I can't push it to the precise branch (the package importer will sort that out). Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'checkbox/dispatcher.py'
2--- checkbox/dispatcher.py 2011-11-18 12:46:21 +0000
3+++ checkbox/dispatcher.py 2012-10-03 20:52:23 +0000
4@@ -1,6 +1,21 @@
5-# Copyright 2010-2011 Canonical Ltd. This software is licensed under the
6-# GNU Affero General Public License version 3 (see the file LICENSE).
7-
8+#
9+# This file is part of Checkbox.
10+#
11+# Copyright 2010-12 Canonical Ltd.
12+#
13+# Checkbox is free software: you can redistribute it and/or modify
14+# it under the terms of the GNU General Public License as published by
15+# the Free Software Foundation, either version 3 of the License, or
16+# (at your option) any later version.
17+#
18+# Checkbox is distributed in the hope that it will be useful,
19+# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+# GNU General Public License for more details.
22+#
23+# You should have received a copy of the GNU General Public License
24+# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
25+#
26 __metaclass__ = type
27
28 __all__ = [
29
30=== modified file 'checkbox/user_interface.py'
31--- checkbox/user_interface.py 2012-03-21 02:22:11 +0000
32+++ checkbox/user_interface.py 2012-10-03 20:52:23 +0000
33@@ -155,7 +155,8 @@
34
35 # if gnome-session is running, try gnome-open; special-case firefox
36 # (and more generally, mozilla browsers) and epiphany to open a new window
37- # with respectively -new-window and --new-window
38+ # with respectively -new-window and --new-window; special-case chromium-browser
39+ # to allow file:// URLs as needed by the checkbox report.
40 try:
41 if os.getenv("DISPLAY") and \
42 subprocess.call(["pgrep", "-x", "-u", str(uid), "gnome-panel|gconfd-2"],
43@@ -174,6 +175,11 @@
44 if browser:
45 subprocess.Popen(sudo_prefix + [browser.group(0), "--new-window", url])
46 return
47+
48+ browser = re.match("(chromium-browser[^\s]*)", preferred_browser)
49+ if browser:
50+ subprocess.Popen(sudo_prefix + [browser.group(0), "--allow-file-access-from-files", url])
51+ return
52
53 subprocess.Popen(sudo_prefix + [preferred_browser % url], shell=True)
54 return
55
56=== modified file 'debian/changelog'
57--- debian/changelog 2012-04-11 17:20:37 +0000
58+++ debian/changelog 2012-10-03 20:52:23 +0000
59@@ -1,3 +1,33 @@
60+checkbox (0.13.8) precise-proposed; urgency=low
61+
62+ * New upstream release (LP: #1061198)
63+
64+ [Marc Tardif]
65+ * checkbox/dispatcher.py: Updated license to GPLv3 to be consistent with
66+ rest of Checkbox files (LP: #1049881)
67+
68+ [Sylvain Pineau]
69+ * qt/frontend/qtfront.ui: Fixed the test purpose widget size to allow two
70+ lines of description (LP: #1032255)
71+ * scripts/camera_test, jobs/camera.txt.in: Added a 10s timeout to the camera
72+ still test (LP: #990133)
73+
74+ [Daniel Manrique]
75+ * jobs/audio.txt.in: replaced gconfaudiosink by autoaudiosink (LP: #978895)
76+ * Instruct Chromium browser to accept file:// URLs so it can correctly
77+ open the checkbox submission.xml report (LP: #1026614)
78+ * scripts/network_check: InvalidURL exception is caught and handled more
79+ cleanly (LP: #751701)
80+ * Set the correct user (root) for fwts-wakealarm test (LP: #1004102)
81+ * Set correct user (root) for usb/storage-preinserted, so it works correctly
82+ on servers (LP: #1004131)
83+
84+ [Nathan Williams]
85+ * scripts/network_check: Fixed exception handling in the absence of zenity
86+ (LP: #988260)
87+
88+ -- Daniel Manrique <roadmr@ubuntu.com> Tue, 02 Oct 2012 17:18:22 -0400
89+
90 checkbox (0.13.7) precise; urgency=low
91
92 * New upstream release (LP: #980063)
93
94=== modified file 'jobs/audio.txt.in'
95--- jobs/audio.txt.in 2012-02-10 11:19:05 +0000
96+++ jobs/audio.txt.in 2012-10-03 20:52:23 +0000
97@@ -12,7 +12,7 @@
98 requires:
99 device.category == 'AUDIO'
100 package.name == 'alsa-base' and package.name == 'python-gst0.10'
101-command: audio_settings store > $CHECKBOX_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink'; audio_settings restore --file=$CHECKBOX_SHARE/pulseaudio_settings
102+command: audio_settings store > $CHECKBOX_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; audio_settings restore --file=$CHECKBOX_SHARE/pulseaudio_settings
103 _description:
104 PURPOSE:
105 This test will check that internal speakers work correctly
106@@ -29,7 +29,7 @@
107 requires:
108 device.category == 'AUDIO'
109 package.name == 'alsa-base' and package.name == 'python-gst0.10'
110-command: audio_settings store > $CHECKBOX_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink'; audio_settings restore --file=$CHECKBOX_SHARE/pulseaudio_settings
111+command: audio_settings store > $CHECKBOX_SHARE/pulseaudio_settings; audio_settings set --device=pci --volume=50; gst_pipeline_test -t 2 'audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! autoaudiosink'; audio_settings restore --file=$CHECKBOX_SHARE/pulseaudio_settings
112 _description:
113 PURPOSE:
114 This test will check that headphones connector works correctly
115
116=== modified file 'jobs/power-management.txt.in'
117--- jobs/power-management.txt.in 2011-11-18 12:46:21 +0000
118+++ jobs/power-management.txt.in 2012-10-03 20:52:23 +0000
119@@ -68,6 +68,7 @@
120
121 plugin: shell
122 name: power-management/fwts_wakealarm
123+user: root
124 _description: Test ACPI Wakealarm (fwts wakealarm)
125 requires:
126 package.name == 'linux'
127
128=== modified file 'jobs/usb.txt.in'
129--- jobs/usb.txt.in 2012-02-10 11:19:05 +0000
130+++ jobs/usb.txt.in 2012-10-03 20:52:23 +0000
131@@ -106,6 +106,7 @@
132
133 plugin: shell
134 name: usb/storage-preinserted
135+user: root
136 requires: package.name == 'linux'
137 command: removable_storage_test -l usb && removable_storage_test usb
138 _description:
139
140=== modified file 'qt/frontend/qtfront.ui'
141--- qt/frontend/qtfront.ui 2012-04-11 17:20:37 +0000
142+++ qt/frontend/qtfront.ui 2012-10-03 20:52:23 +0000
143@@ -736,7 +736,7 @@
144 <x>10</x>
145 <y>30</y>
146 <width>611</width>
147- <height>21</height>
148+ <height>31</height>
149 </rect>
150 </property>
151 <property name="sizePolicy">
152
153=== modified file 'scripts/audio_test'
154--- scripts/audio_test 2011-09-01 12:23:07 +0000
155+++ scripts/audio_test 2012-10-03 20:52:23 +0000
156@@ -4,7 +4,7 @@
157 GST_COMMAND_OLD="/usr/bin/gst-launch"
158 GST_COMMAND_NEW="/usr/bin/gst-launch-0.10"
159 GST_COMMAND_OPTS="audiotestsrc wave=sine freq=512 ! audioconvert !
160-audioresample ! gconfaudiosink"
161+audioresample ! autoaudiosink"
162 #SOX_COMMAND="rec -q -r 44100 -p | sox -p $OUTPUT silence -l 1 00:00:00.5 -45d -1 00:00:00.5 -45d"
163 REC_COMMAND="rec -q -r 44100 $OUTPUT"
164 SOX_COMMAND="sox $OUTPUT $OUTPUT.1.wav silence -l 1 00:00:00.5 -45d -1 00:00:00.5 -45d"
165
166=== modified file 'scripts/camera_test'
167--- scripts/camera_test 2012-02-10 11:19:05 +0000
168+++ scripts/camera_test 2012-10-03 20:52:23 +0000
169@@ -89,7 +89,11 @@
170 self._pipeline.set_state(gst.STATE_PLAYING)
171 time.sleep(3)
172 self._pipeline.set_state(gst.STATE_READY)
173- call(["eog", file.name])
174+ try:
175+ call(["timeout", "-k", "11", "10", "eog", filename])
176+ except CalledProcessError:
177+ pass
178+
179
180 def parse_arguments(argv):
181 """
182
183=== modified file 'scripts/network_check'
184--- scripts/network_check 2011-09-29 13:12:01 +0000
185+++ scripts/network_check 2012-10-03 20:52:23 +0000
186@@ -5,6 +5,7 @@
187 """
188 from subprocess import call
189 from optparse import OptionParser, Option
190+import httplib
191 import urllib2
192 import sys
193
194@@ -15,7 +16,7 @@
195 """
196 try:
197 urllib2.urlopen(url)
198- except urllib2.URLError:
199+ except (urllib2.URLError, httplib.InvalidURL):
200 return False
201
202 return True
203@@ -53,8 +54,11 @@
204 command.append("--error")
205
206 if not options.auto:
207- call(command)
208-
209+ try:
210+ call(command)
211+ except OSError:
212+ print("Zenity missing; unable to report test result:\n %s" % message)
213+
214 if any(results.itervalues()):
215 return 0
216 else:

Subscribers

People subscribed via source and target branches