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

Issue 711113002: Add option to specify ADB binary in test runner. (Closed)

Created:
6 years, 1 month ago by mikecase (-- gone --)
Modified:
6 years, 1 month 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

Add option to specify ADB binary in test runner. BUG=430957 Committed: https://crrev.com/48e16bf554e30c49d51a6a8b68c044cdeac70286 Cr-Commit-Position: refs/heads/master@{#304913}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebased onto recent test runner changes. #

Patch Set 4 : Fixed issue with Host Forwarder not finding ADB. #

Patch Set 5 : Decided to move where ADB added to path to test_runner.py #

Total comments: 13

Patch Set 6 : Made adb_path passed in to AdbInterface in init(). #

Patch Set 7 : Removed no longer used SetAdbPath in AdbInterface. #

Patch Set 8 : Rebase #

Patch Set 9 : Makes tests pass even when absolute path of adb is given. #

Patch Set 10 : #

Total comments: 1

Patch Set 11 : Made regex slightly more specific #

Patch Set 12 : #

Patch Set 13 : Fixed mocking AdbGetPath. #

Total comments: 1

Patch Set 14 : Simplified mocking AdbGetPath. #

Patch Set 15 : #

Total comments: 1

Patch Set 16 : Fixed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -12 lines) Patch
M build/android/pylib/android_commands.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -5 lines 0 comments Download
M build/android/pylib/constants.py View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download
M build/android/pylib/device/adb_wrapper.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M build/android/pylib/device/device_utils_test.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M build/android/test_runner.py View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M third_party/android_testrunner/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/android_testrunner/adb_interface.py View 1 2 3 4 5 6 2 chunks +12 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
mikecase (-- gone --)
6 years, 1 month ago (2014-11-10 21:10:14 UTC) #2
mikecase (-- gone --)
On 2014/11/10 21:10:14, mikecase wrote: By the way, the trybot failed because I don't think ...
6 years, 1 month ago (2014-11-10 21:12:09 UTC) #3
jbudorick
On 2014/11/10 21:12:09, mikecase wrote: > On 2014/11/10 21:10:14, mikecase wrote: > > By the ...
6 years, 1 month ago (2014-11-10 21:32:51 UTC) #4
mikecase (-- gone --)
On 2014/11/10 21:32:51, jbudorick wrote: > On 2014/11/10 21:12:09, mikecase wrote: > > On 2014/11/10 ...
6 years, 1 month ago (2014-11-11 00:41:43 UTC) #5
jbudorick
Most of these changes look fine. https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/constants.py File build/android/pylib/constants.py (right): https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/constants.py#newcode245 build/android/pylib/constants.py:245: def GetAdbPath(): Why ...
6 years, 1 month ago (2014-11-11 15:27:23 UTC) #6
mikecase (-- gone --)
Read my comments when you have time. Thanks https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/constants.py File build/android/pylib/constants.py (right): https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/constants.py#newcode245 build/android/pylib/constants.py:245: def ...
6 years, 1 month ago (2014-11-11 17:56:42 UTC) #7
jbudorick
https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py#newcode318 build/android/pylib/android_commands.py:318: self._adb.SetAdbPath(constants.GetAdbPath()) Add the adb path as a parameter to ...
6 years, 1 month ago (2014-11-11 18:04:03 UTC) #8
mikecase (-- gone --)
https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py File build/android/pylib/android_commands.py (right): https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py#newcode318 build/android/pylib/android_commands.py:318: self._adb.SetAdbPath(constants.GetAdbPath()) On 2014/11/11 18:04:03, jbudorick wrote: > Add the ...
6 years, 1 month ago (2014-11-11 19:36:01 UTC) #9
jbudorick
On 2014/11/11 19:36:01, mikecase wrote: > https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py > File build/android/pylib/android_commands.py (right): > > https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py#newcode318 > ...
6 years, 1 month ago (2014-11-13 18:43:09 UTC) #10
jbudorick
On 2014/11/13 18:43:09, jbudorick wrote: > On 2014/11/11 19:36:01, mikecase wrote: > > > https://codereview.chromium.org/711113002/diff/80001/build/android/pylib/android_commands.py ...
6 years, 1 month ago (2014-11-13 23:04:43 UTC) #11
jbudorick
lgtm
6 years, 1 month ago (2014-11-13 23:06:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/711113002/120001
6 years, 1 month ago (2014-11-13 23:14:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/91601) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/81359) win_gpu ...
6 years, 1 month ago (2014-11-13 23:21:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/711113002/140001
6 years, 1 month ago (2014-11-13 23:39:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/24103)
6 years, 1 month ago (2014-11-13 23:49:32 UTC) #20
mikecase (-- gone --)
On 2014/11/13 23:39:02, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 1 month ago (2014-11-13 23:52:38 UTC) #21
mikecase (-- gone --)
Hey, I want you to make a look at the changes I made to device_utils_test.py ...
6 years, 1 month ago (2014-11-17 22:52:19 UTC) #22
jbudorick
https://codereview.chromium.org/711113002/diff/180001/build/android/pylib/device/device_utils_test.py File build/android/pylib/device/device_utils_test.py (right): https://codereview.chromium.org/711113002/diff/180001/build/android/pylib/device/device_utils_test.py#newcode183 build/android/pylib/device/device_utils_test.py:183: self._comp(expected_cmd, re.sub(r'/.*/adb', 'adb', actual_cmd)), I'm not a fan of ...
6 years, 1 month ago (2014-11-17 23:01:07 UTC) #23
mikecase (-- gone --)
On 2014/11/17 23:01:07, jbudorick wrote: > https://codereview.chromium.org/711113002/diff/180001/build/android/pylib/device/device_utils_test.py > File build/android/pylib/device/device_utils_test.py (right): > > https://codereview.chromium.org/711113002/diff/180001/build/android/pylib/device/device_utils_test.py#newcode183 > ...
6 years, 1 month ago (2014-11-19 19:55:13 UTC) #24
jbudorick
https://codereview.chromium.org/711113002/diff/240001/build/android/pylib/device/device_utils_test.py File build/android/pylib/device/device_utils_test.py (right): https://codereview.chromium.org/711113002/diff/240001/build/android/pylib/device/device_utils_test.py#newcode218 build/android/pylib/device/device_utils_test.py:218: with mock.patch('pylib.constants.GetAdbPath', why not patch it in setUp and ...
6 years, 1 month ago (2014-11-19 19:58:46 UTC) #25
mikecase (-- gone --)
On 2014/11/19 19:58:46, jbudorick wrote: > https://codereview.chromium.org/711113002/diff/240001/build/android/pylib/device/device_utils_test.py > File build/android/pylib/device/device_utils_test.py (right): > > https://codereview.chromium.org/711113002/diff/240001/build/android/pylib/device/device_utils_test.py#newcode218 > ...
6 years, 1 month ago (2014-11-19 20:49:22 UTC) #26
jbudorick
lgtm w/ nit https://codereview.chromium.org/711113002/diff/280001/build/android/pylib/device/device_utils_test.py File build/android/pylib/device/device_utils_test.py (right): https://codereview.chromium.org/711113002/diff/280001/build/android/pylib/device/device_utils_test.py#newcode218 build/android/pylib/device/device_utils_test.py:218: self._getadbpath_patch = mock.patch('pylib.constants.GetAdbPath', nit: self._get_adb_path_patch
6 years, 1 month ago (2014-11-19 20:52:14 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/711113002/300001
6 years, 1 month ago (2014-11-19 21:45:38 UTC) #29
commit-bot: I haz the power
Committed patchset #16 (id:300001)
6 years, 1 month ago (2014-11-19 22:46:54 UTC) #30
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 22:48:02 UTC) #31
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/48e16bf554e30c49d51a6a8b68c044cdeac70286
Cr-Commit-Position: refs/heads/master@{#304913}

Powered by Google App Engine
This is Rietveld 408576698