Merge lp:~pwlars/utah/phablet-sudo-commands into lp:utah

Proposed by Paul Larson
Status: Merged
Merged at revision: 1053
Proposed branch: lp:~pwlars/utah/phablet-sudo-commands
Merge into: lp:utah
Diff against target: 44 lines (+5/-5)
1 file modified
examples/run_utah_phablet.py (+5/-5)
To merge this branch: bzr merge lp:~pwlars/utah/phablet-sudo-commands
Reviewer Review Type Date Requested Status
Para Siva (community) Approve
Review via email: mp+231804@code.launchpad.net

Description of the change

I was able to get utah based tests passing with this change for phablet runs.

To post a comment you must log in.
Revision history for this message
Para Siva (psivaa) :
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-11-04 15:37:54 +0000
3+++ examples/run_utah_phablet.py 2014-08-21 20:24:36 +0000
4@@ -135,13 +135,13 @@
5 with open(ofile, 'w') as f:
6 f.write(buf)
7
8- buf = device.run_ubuntu('dmesg', False)
9+ buf = device.run_ubuntu('sudo dmesg', False)
10 ofile = os.path.join(results_dir, 'dmesg.log')
11 with open(ofile, 'w') as f:
12 f.write(buf)
13
14 buf = device.run_ubuntu(
15- '/var/lib/lxc/android/rootfs/system/bin/logcat -d', False)
16+ 'sudo /var/lib/lxc/android/rootfs/system/bin/logcat -d', False)
17 ofile = os.path.join(results_dir, 'logcat.log')
18 with open(ofile, 'w') as f:
19 f.write(buf)
20@@ -165,7 +165,7 @@
21 device.create_file_ubuntu('/etc/init/run_utah.conf', '\n'.join(buf))
22
23 p = '/etc/utah/autorun'
24- device.run_ubuntu('sh -c "[ -d {} ] || mkdir -p {}"'.format(p, p))
25+ device.run_ubuntu('sudo sh -c "[ -d {} ] || mkdir -p {}"'.format(p, p))
26
27 if not env:
28 env = ''
29@@ -268,7 +268,7 @@
30 if args.serial:
31 env['ANDROID_SERIAL'] = args.serial
32
33- device.run_ubuntu('mkdir {}'.format(CLIENT_PROBES_DIR))
34+ device.run_ubuntu('sudo mkdir {}'.format(CLIENT_PROBES_DIR))
35
36 host = os.path.join(args.results_dir, 'utah-host.yml')
37 tmpdir = tempfile.mkdtemp()
38@@ -329,7 +329,7 @@
39
40 """
41 device.run_ubuntu(
42- 'rm -rf /var/lib/utah/utah.yaml /tmp/utah.log {}'.format(
43+ 'sudo rm -rf /var/lib/utah/utah.yaml /tmp/utah.log {}'.format(
44 CLIENT_PROBES_DIR))
45
46

Subscribers

People subscribed via source and target branches