Merge lp:~bladernr/checkbox/1169488-fix-bluetooth-test into lp:checkbox

Proposed by Jeff Lane 
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2083
Merged at revision: 2084
Proposed branch: lp:~bladernr/checkbox/1169488-fix-bluetooth-test
Merge into: lp:checkbox
Diff against target: 25 lines (+3/-1)
2 files modified
debian/changelog (+2/-0)
scripts/bluetooth_test (+1/-1)
To merge this branch: bzr merge lp:~bladernr/checkbox/1169488-fix-bluetooth-test
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+160899@code.launchpad.net

Description of the change

changes the dpkg line to use dpgk-query -W obexftp. This avoids weird subshell funk with pipes and grep stuff that was triggering a strange Broken Pipe Error in script output during test runs, even if the script was successful.

Output before the fix:
dpkg-query: error: error writing to '<standard output>': Broken pipe Checking 00:02:72:DC:5E:38 for JPEG_Color_Image_Ubuntu.jpg Will check for a filesize of 25770 Browsing 00:02:72:DC:5E:38 ... Co...

Output after the fix:
Checking 08:ed:b9:4b:18:6a for JPEG_Color_Image_Ubuntu.jpg Will check for a filesize of 25770 Browsing 08:ed:b9:4b:18:6a ... Connecting..\done Tried to connect for 910ms Receiving "(null)"...|done...

Verified by Jeffrey Chang on a system in TPE that was consistently showing the failure.

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

+1

Dziękuję, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-04-24 15:50:49 +0000
3+++ debian/changelog 2013-04-25 13:44:05 +0000
4@@ -19,6 +19,8 @@
5 scripts/fwts_test: no longer fails on fwts errors if "-f none" is chosen.
6 Now it should only fail by manual indication if the actual sleep action
7 fails. (LP: #1169922)
8+ * scripts/bluetooth_test: test no longer generates odd Broken Pipe error when
9+ the dpkg bit verifies obexftp is installed (LP: #1169488)
10
11 -- Brendan Donegan <brendan.donegan@canonical.com> Wed, 24 Apr 2013 16:33:15 +0100
12
13
14=== modified file 'scripts/bluetooth_test'
15--- scripts/bluetooth_test 2012-10-02 17:18:02 +0000
16+++ scripts/bluetooth_test 2013-04-25 13:44:05 +0000
17@@ -6,7 +6,7 @@
18 BTADDR=$2
19 ACTION=$3
20
21-if ! dpkg -l | grep -q obexftp; then
22+if ! dpkg-query -W obexftp >/dev/null 2>&1; then
23 echo "You must install obexftp to run this script"
24 exit 1
25 fi

Subscribers

People subscribed via source and target branches