Merge lp:~pwlars/utah/utah-phablet-whoopsie-log into lp:utah

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

Description of the change

ever since the adbd permissions change, whoopsie.log cannot be captured through adb pull directly because it's under a directory where the normal phablet user does not have read permissions. Instead, cat the file and save it.

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 2014-09-23 21:44:28 +0000
3+++ examples/run_utah_phablet.py 2014-10-06 19:55:25 +0000
4@@ -146,6 +146,12 @@
5 with open(ofile, 'w') as f:
6 f.write(buf)
7
8+ buf = device.run_ubuntu(
9+ 'sudo cat /var/log/upstart/whoopsie.log', False)
10+ ofile = os.path.join(results_dir, 'whoopsie.log')
11+ with open(ofile, 'w') as f:
12+ f.write(buf)
13+
14 retry(run)
15
16

Subscribers

People subscribed via source and target branches