Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Issue 2542333002: (Reland) Insert logcat as part of test result for android instrumentation tests. (Closed)

Created:
4 years ago by BigBossZhiling
Modified:
4 years ago
Reviewers:
jbudorick
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(Reland) Insert logcat as part of test result for android instrumentation tests. In this cl, we are trying to add the logcat of each instrumentation test into the corresponding test result object, so that when we are checking the result of each test case, we would be able to see the corresponding logcat for that test case at the same time. BUG=631213 Committed: https://crrev.com/af7d1b8ebb52ace8f7443689abf4e79cd117ef9d Cr-Commit-Position: refs/heads/master@{#435802}

Patch Set 1 #

Patch Set 2 : catch weird exceptions #

Patch Set 3 : avoid duplicate name #

Patch Set 4 : added ignore too broad exception warning #

Total comments: 2

Patch Set 5 : add serial number to stream name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -3 lines) Patch
A build/android/pylib/android/__init__.py View 1 chunk +4 lines, -0 lines 0 comments Download
A build/android/pylib/android/logdog_logcat_monitor.py View 1 2 3 1 chunk +95 lines, -0 lines 0 comments Download
M build/android/pylib/base/base_test_result.py View 2 chunks +7 lines, -0 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 3 chunks +10 lines, -0 lines 0 comments Download
M build/android/pylib/local/device/local_device_instrumentation_test_run.py View 1 2 3 4 3 chunks +17 lines, -3 lines 0 comments Download
M build/android/pylib/results/json_results.py View 1 chunk +1 line, -0 lines 0 comments Download
M build/android/test_runner.pydeps View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
BigBossZhiling
W: 35,11: Catching too general exception Exception (broad-except) W: 59,11: Catching too general exception Exception ...
4 years ago (2016-12-01 23:00:47 UTC) #3
mikecase (-- gone --)
On 2016/12/01 at 23:00:47, hzl wrote: > W: 35,11: Catching too general exception Exception (broad-except) ...
4 years ago (2016-12-01 23:06:16 UTC) #4
BigBossZhiling
avoided logic to avoid duplicate stream_name (which will cause the stream to crash)
4 years ago (2016-12-01 23:21:43 UTC) #5
BigBossZhiling
added*
4 years ago (2016-12-01 23:22:05 UTC) #6
jbudorick
https://codereview.chromium.org/2542333002/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2542333002/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode252 build/android/pylib/local/device/local_device_instrumentation_test_run.py:252: stream_name = 'logcat_%s_%s' % ( Mentioned offline: include the ...
4 years ago (2016-12-01 23:42:11 UTC) #7
BigBossZhiling
added serial number in stream name https://codereview.chromium.org/2542333002/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py File build/android/pylib/local/device/local_device_instrumentation_test_run.py (right): https://codereview.chromium.org/2542333002/diff/60001/build/android/pylib/local/device/local_device_instrumentation_test_run.py#newcode252 build/android/pylib/local/device/local_device_instrumentation_test_run.py:252: stream_name = 'logcat_%s_%s' ...
4 years ago (2016-12-01 23:53:59 UTC) #8
jbudorick
lgtm
4 years ago (2016-12-01 23:55:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542333002/80001
4 years ago (2016-12-02 00:01:03 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-02 01:12:39 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-02 01:14:37 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/af7d1b8ebb52ace8f7443689abf4e79cd117ef9d
Cr-Commit-Position: refs/heads/master@{#435802}

Powered by Google App Engine
This is Rietveld 408576698