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

Issue 1893693002: [Android] Get package_info by using apk_under_test package. (Closed)

Created:
4 years, 8 months ago by mikecase (-- gone --)
Modified:
4 years, 8 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Get package_info by using apk_under_test package. Currently, the package_info used by the test apk is looked up by by looking at the test_apk package in the list of package_infos. Instead, we can just look at the package entries in the list of package_infos and compare it to the package of the apk_under_test. This makes things much nicer, when for instance you have multiple test apks targeting the same package. BUG= Committed: https://crrev.com/f6c372aea4a4c79598b9414a9049b7ac5f659f2e Cr-Commit-Position: refs/heads/master@{#387943}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -29 lines) Patch
M build/android/pylib/constants/__init__.py View 1 chunk +11 lines, -28 lines 0 comments Download
M build/android/pylib/instrumentation/instrumentation_test_instance.py View 1 chunk +2 lines, -1 line 2 comments Download

Messages

Total messages: 16 (5 generated)
mikecase (-- gone --)
My CL description is a little confusing, but basically the issue is that there are ...
4 years, 8 months ago (2016-04-15 20:26:24 UTC) #2
rnephew (Reviews Here)
https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode281 build/android/pylib/instrumentation/instrumentation_test_instance.py:281: if package_under_test == package_info.package: In this context: package_under_test == ...
4 years, 8 months ago (2016-04-15 20:35:36 UTC) #3
mikecase (-- gone --)
https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py File build/android/pylib/instrumentation/instrumentation_test_instance.py (right): https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode281 build/android/pylib/instrumentation/instrumentation_test_instance.py:281: if package_under_test == package_info.package: On 2016/04/15 at 20:35:36, rnephew1 ...
4 years, 8 months ago (2016-04-15 20:55:37 UTC) #4
rnephew (Reviews Here)
On 2016/04/15 20:55:37, mikecase wrote: > https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py > File build/android/pylib/instrumentation/instrumentation_test_instance.py > (right): > > https://codereview.chromium.org/1893693002/diff/1/build/android/pylib/instrumentation/instrumentation_test_instance.py#newcode281 ...
4 years, 8 months ago (2016-04-15 21:19:57 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1893693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1893693002/1
4 years, 8 months ago (2016-04-15 21:56:36 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/212233)
4 years, 8 months ago (2016-04-15 22:21:58 UTC) #9
agrieve
Much nicer! lgtm
4 years, 8 months ago (2016-04-16 00:17:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1893693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1893693002/1
4 years, 8 months ago (2016-04-18 16:26:19 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-18 17:32:48 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/f6c372aea4a4c79598b9414a9049b7ac5f659f2e Cr-Commit-Position: refs/heads/master@{#387943}
4 years, 8 months ago (2016-04-18 17:34:20 UTC) #15
mikecase (-- gone --)
4 years, 8 months ago (2016-04-18 20:10:58 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/1900873002/ by mikecase@chromium.org.

The reason for reverting is: Breaks the MogoTests due to this error.

AttributeError: 'NoneType' object has no attribute 'GetPackageName'.

Powered by Google App Engine
This is Rietveld 408576698