Merge lp:~mzanetti/phablet-tools/phablet-test-run-fix-installing into lp:phablet-tools

Proposed by Michael Zanetti
Status: Merged
Approved by: Sergio Schvezov
Approved revision: 87
Merged at revision: 88
Proposed branch: lp:~mzanetti/phablet-tools/phablet-test-run-fix-installing
Merge into: lp:phablet-tools
Diff against target: 27 lines (+5/-3)
1 file modified
phablet-test-run (+5/-3)
To merge this branch: bzr merge lp:~mzanetti/phablet-tools/phablet-test-run-fix-installing
Reviewer Review Type Date Requested Status
Sergio Schvezov Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+161990@code.launchpad.net

Commit message

fix installation of multiple local packages

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sergio Schvezov (sergiusens) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'phablet-test-run'
2--- phablet-test-run 2013-04-15 22:15:20 +0000
3+++ phablet-test-run 2013-05-01 23:41:26 +0000
4@@ -72,19 +72,21 @@
5
6 install_packages() {
7
8- if test -n $TESTPACKAGES; then
9+ if test -n "$TESTPACKAGES"; then
10 exec_with_adb apt-get -y -q install $TESTPACKAGES
11 fi
12
13- if test -n $LOCALPACKAGES; then
14+ if test -n "$LOCALPACKAGES"; then
15 exec_with_adb mkdir -p /tmp/phablet-run-test/
16 exec_with_adb rm -rf /tmp/phablet-run-test/*
17+ PACKAGELIST=""
18 for PACKAGEPATH in $LOCALPACKAGES; do
19 PACKAGE=$(basename $PACKAGEPATH)
20 echo "Pushing $PACKAGE..."
21 adb push $PACKAGEPATH /data/ubuntu/tmp/phablet-run-test/
22- exec_with_adb dpkg -i /tmp/phablet-run-test/$PACKAGE
23+ PACKAGELIST="$PACKAGELIST /tmp/phablet-run-test/$PACKAGE"
24 done
25+ exec_with_adb dpkg -i $PACKAGELIST
26 fi
27 }
28

Subscribers

People subscribed via source and target branches