Merge lp:~vorlon/phablet-tools/checkbashisms into lp:phablet-tools

Proposed by Steve Langasek
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 248
Merged at revision: 249
Proposed branch: lp:~vorlon/phablet-tools/checkbashisms
Merge into: lp:phablet-tools
Diff against target: 12 lines (+1/-1)
1 file modified
phablet-screenshot (+1/-1)
To merge this branch: bzr merge lp:~vorlon/phablet-tools/checkbashisms
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+213556@code.launchpad.net

Commit message

phablet-screenshot: Fix a use of sed which while technically not a bashism, causes checkbashisms to be able to parse the file, resulting in a test failure. In the process, make the pipeline more robust with regards to the 'fbset' output across platforms.

Description of the change

checkbashisms fails on phablet-screenshot, which causes CI for phablet-tools
to fail. Not sure how the branch was allowed to get into this state, the
testsuite should be run at package build time and should have caught this
error (and if not the package build, then the previous CI run).

Anyway, this should fix the problem, and should thus unblock my other MP,
https://code.launchpad.net/~vorlon/phablet-tools/sane-adb-shells/+merge/213541

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:248
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https://code.launchpad.net/~vorlon/phablet-tools/checkbashisms/+merge/213556/+edit-commit-message

http://jenkins.qa.ubuntu.com/job/phablet-tools-ci/296/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-trusty-amd64-ci/68
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-trusty-armhf-ci/68
    SUCCESS: http://jenkins.qa.ubuntu.com/job/phablet-tools-trusty-i386-ci/68

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/phablet-tools-ci/296/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve
249. By Steve Langasek

Drop changelog entry, will be autogenerated

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'phablet-screenshot'
2--- phablet-screenshot 2014-03-26 17:02:53 +0000
3+++ phablet-screenshot 2014-04-01 01:34:37 +0000
4@@ -173,7 +173,7 @@
5 # Otherwise just dump the framebuffer
6 # Set resolution and depth for device
7 depth=8
8- size="$(adb shell fbset|grep ^mode|sed -e 's/^.* "//' -e 's/-.*$//')"
9+ size="$(adb shell fbset|sed -n -e's/^mode.*\"\([0-9]\+x[0-9]\+\)[-\"].*$/\1/p')"
10 device="$(get_device)"
11 if [ -z "$size" ]; then
12 echo "E: Resolution not found. Device is not supported."

Subscribers

People subscribed via source and target branches