Merge lp:~doanac/utah/phablet-network into lp:utah

Proposed by Andy Doan
Status: Merged
Merged at revision: 1000
Proposed branch: lp:~doanac/utah/phablet-network
Merge into: lp:utah
Diff against target: 62 lines (+8/-30)
2 files modified
examples/run_utah_phablet.py (+1/-1)
utah/provisioning/touch.py (+7/-29)
To merge this branch: bzr merge lp:~doanac/utah/phablet-network
Reviewer Review Type Date Requested Status
Max Brustkern (community) Approve
Chris Johnston (community) Approve
Review via email: mp+182439@code.launchpad.net

Description of the change

we need to update our calls for phablet-network as per:

 http://bazaar.launchpad.net/~phablet-team/phablet-tools/trunk/revision/171

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Looks fine

 review approve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)

iQQcBAEBAgAGBQJSHNToAAoJEAwLwog889GlDFcgAJsRVCMjG4tW8nrn91BRadhI
5FlC1Mu6/PTS6umPMyM5aPY2HdQNoAI1LuJasol2wOUg8eqPFBT8QlnMV3mI+fFp
EUa+pcsWm8j4G0WTYeDR6qxigqNXqrrUad+nqQwEdBwlmpU+gZNWGMRwQHkhm8JY
pVN32MOTod9FFmRAI9ue1cwH5LZUDe/RJWNR9X531XeqzxhH3W7KoSzBDOq3/vEw
Sbk4ImktrJalkSwrKlnXUXuv2pfUGnElmpBvCbxjfFpGYfZ1rfXCzN0KPfwdL75k
nLdfCaLGu2onROardhuJ37LLXVAK1BD8k2mpQMZD57pGQobD8P+6Z4+ovTx19urW
Dlwbz2bmj5WuI2Q/FmJ/s04a1KeUGZMfBXPxV0Rz9m4//9AmaIQvtg/QLy/wNXRw
vpt7FchzZEzjsm9Ie9DNxVVxjqxxiA6TR/yqzZpwKg/PmrWERsfoirNFaAXplcgy
utCGfvVHkmqs+ryGl5SJunOtf66Jeo2a3Ep5Rep4DD8mms5/eNXhTYJez+e2KwnS
qWAayop/DHxRWmUmceG/Cmp3FaPextn7BROkrnHg+YlcLz5cuuj6XJzgyJEGFlrC
uFCL5WgB19O7LhQOA1QcdFGk0G2Xl0O8OTpJHtZy5QPHAkUWbSBlTCU5JOsNQeOQ
TZA6lORusdI1YXXRaH4We4ZQtDk27iIKVU+wpvBoe65EgqurvstJcS/Q143P5xzs
2/i2ZbmPloVGUhOJqyAAzbiO71NohoDeHvBFHpouB5gx34PSBqLrWCMxvOAyzVMT
fStPy8f4ECIe7X3enAJEtXr9d3LPKz8Y/BNFiLuba2HAKiWTFTMOpG3t9rZNsWXM
Qg4D3LKM18szdj8T1sDXR37Md2jTwU+lJ27Ll3ltJQCGwPN735RZfd+BQ526ZaHH
VEtdKFC1/zeMzZXPS3xXu8UWCpLxR9q7YgZ0ilv177CrgruU5fKo2BXDaJR8xApC
tcja/TIdtdggCXj417/2GZIfUtCV1YUzMBpN2IVNLY18VJ7LSantOsYA7s/mC/3Q
7RBSlnpqOjtQyTil0swRR+oYnS59FbKLy4tiYUR4OsGLW8A7cysZzk9EGzH10oZM
1eRx9tQgWvUzgqrfd34HhjOrs6tNa6W2CQcpDCiUbhTDOrjzX4Cf1qOJlvgRRZ3a
nrAphom3MZOnqV53kqirygrXcv+dtpDSxNVC/67anBMJS9gfi00f7Tk7HU4qTt8T
VzqtpuwI74RHyxQiifzkkrlSUMCIYHhQaIgYQSmOm5rlf46fo48dYJbnOelOVkC3
PiJ1EEzsgyh33PimcHXmggfO1ynYAMuv2X5Lso1LU8Ej7dks4nPjm8IQ8+XE0LY=
=UH7W
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
Max Brustkern (nuclearbob) wrote :

Seems reasonable to me.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'examples/run_utah_phablet.py'
2--- examples/run_utah_phablet.py 2013-08-23 16:31:13 +0000
3+++ examples/run_utah_phablet.py 2013-08-27 16:31:37 +0000
4@@ -86,7 +86,7 @@
5
6 @phablet_tools_errors
7 def _network(args):
8- cmd = ['phablet-network-setup']
9+ cmd = ['phablet-network']
10 if args.serial:
11 cmd.extend(['-s', args.serial])
12 if args.network_file:
13
14=== modified file 'utah/provisioning/touch.py'
15--- utah/provisioning/touch.py 2013-08-09 19:30:05 +0000
16+++ utah/provisioning/touch.py 2013-08-27 16:31:37 +0000
17@@ -109,38 +109,16 @@
18 self._adb_operation(['wait-for-device'])
19
20 def wait_for_network(self):
21- """Wait for networking to be up and running on the target.
22-
23- We often see "something wicked happened" errors. These can be worked
24- around by doing a simple check. This check ensures both ping works
25- and also DNS resolution.
26-
27- NOTE: the QA lab blocks ICMP, so we can't check the success of ping.
28-
29- """
30- script = '/usr/local/bin/utah-wait-for-network'
31- content = [
32- '#!/bin/sh',
33- 'cleanup() {',
34- ' ifconfig',
35- ' exit 99',
36- '}',
37- 'ifconfig -a',
38- 'trap cleanup TERM INT', # add some debugging if we fail
39- 'while true ; do',
40- ' if ping -c1 launchpad.net 2>/dev/null | grep PING ; then',
41- ' exit 0',
42- ' fi',
43- 'done',
44- '',
45- ]
46- self.create_file_ubuntu(script, '\n'.join(content), '755')
47+ """Wait for networking to be up and running on the target"""
48+ args = ['phablet-network', '--skip-setup']
49+ if self._serial:
50+ args.extend(['-s', self._serial])
51 try:
52- self.run_ubuntu('timeout 60s {}'.format(script))
53- except ADBShellError:
54+ subprocess.check_call(args)
55+ except subprocess.CalledProcessError:
56 self._log('wait for network failed, rebooting and retrying...')
57 self.reboot_and_wait()
58- self.run_ubuntu('timeout 60s {}'.format(script))
59+ subprocess.check_call(args)
60
61 def run_ubuntu(self, cmd, stream=True):
62 """Run a command from the Ubuntu environment.

Subscribers

People subscribed via source and target branches

to all changes: