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

Issue 669573003: Reland of 'New run shell implementation for DeviceUtils' (Closed)

Created:
6 years, 2 months ago by perezju
Modified:
6 years, 2 months ago
Reviewers:
jbudorick
CC:
chromium-reviews, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reland of 'New run shell implementation for DeviceUtils' This is a reland of https://codereview.chromium.org/659533002/ Previous CL broke telemetry unittests and perf unittests because it didn't handle properly shell commands which may end with a newline character when check_rc is not None. This revised patch strips any whitespace at the end of shell commands to prevent this. BUG=267773 Committed: https://crrev.com/c2e31ff56e2486ff4173edb774a2e092eba9ce61 Cr-Commit-Position: refs/heads/master@{#300322}

Patch Set 1 #

Total comments: 2

Patch Set 2 : better error handling when return code is not found #

Total comments: 1

Patch Set 3 : pass timeout option to adb.Shell #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -186 lines) Patch
M build/android/pylib/cmd_helper.py View 3 chunks +48 lines, -1 line 0 comments Download
A build/android/pylib/cmd_helper_test.py View 1 chunk +53 lines, -0 lines 0 comments Download
M build/android/pylib/device/adb_wrapper.py View 1 1 chunk +16 lines, -7 lines 0 comments Download
M build/android/pylib/device/adb_wrapper_test.py View 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/pylib/device/device_errors.py View 1 chunk +14 lines, -1 line 0 comments Download
M build/android/pylib/device/device_utils.py View 1 2 13 chunks +106 lines, -52 lines 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 10 chunks +239 lines, -119 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner.py View 1 chunk +2 lines, -2 lines 0 comments Download
M build/android/pylib/instrumentation/test_runner_test.py View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
perezju
https://codereview.chromium.org/669573003/diff/1/build/android/pylib/device/adb_wrapper.py File build/android/pylib/device/adb_wrapper.py (right): https://codereview.chromium.org/669573003/diff/1/build/android/pylib/device/adb_wrapper.py#newcode174 build/android/pylib/device/adb_wrapper.py:174: actual_command = '%s; echo $?;' % command.rstrip() This is ...
6 years, 2 months ago (2014-10-20 15:37:10 UTC) #2
jbudorick
https://codereview.chromium.org/669573003/diff/1/build/android/pylib/device/adb_wrapper.py File build/android/pylib/device/adb_wrapper.py (right): https://codereview.chromium.org/669573003/diff/1/build/android/pylib/device/adb_wrapper.py#newcode179 build/android/pylib/device/adb_wrapper.py:179: rc = int(output[output_end:].strip()) I think we should catch ValueError ...
6 years, 2 months ago (2014-10-20 15:40:59 UTC) #3
perezju
https://codereview.chromium.org/669573003/diff/20001/build/android/pylib/device/adb_wrapper.py File build/android/pylib/device/adb_wrapper.py (right): https://codereview.chromium.org/669573003/diff/20001/build/android/pylib/device/adb_wrapper.py#newcode178 build/android/pylib/device/adb_wrapper.py:178: output_end = output.rfind('%') Trying to find our own marker, ...
6 years, 2 months ago (2014-10-20 16:20:01 UTC) #4
jbudorick
lgtm
6 years, 2 months ago (2014-10-20 16:28:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/669573003/20001
6 years, 2 months ago (2014-10-20 16:46:21 UTC) #7
jbudorick
I un-CQ'ed this because it adds a minute onto unit_tests and I want to figure ...
6 years, 2 months ago (2014-10-20 17:17:55 UTC) #9
jbudorick
On 2014/10/20 17:17:55, jbudorick wrote: > I un-CQ'ed this because it adds a minute onto ...
6 years, 2 months ago (2014-10-20 18:00:06 UTC) #10
perezju
On 2014/10/20 18:00:06, jbudorick wrote: > There are a couple of options here: > > ...
6 years, 2 months ago (2014-10-20 18:21:36 UTC) #11
jbudorick
lgtm
6 years, 2 months ago (2014-10-20 18:23:28 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/669573003/40001
6 years, 2 months ago (2014-10-20 18:53:12 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 2 months ago (2014-10-20 20:26:49 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 20:27:30 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c2e31ff56e2486ff4173edb774a2e092eba9ce61
Cr-Commit-Position: refs/heads/master@{#300322}

Powered by Google App Engine
This is Rietveld 408576698