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

Issue 12407004: Add script to download SDK, system images and create and start AVDs for testing. (Closed)

Created:
7 years, 9 months ago by navabi
Modified:
7 years, 9 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, frankf+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add script to download SDK, system images and create and start AVDs for testing. BUG=164911 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191075

Patch Set 1 #

Total comments: 2

Patch Set 2 : Major re-factoring, using existing pylib util. #

Patch Set 3 : Removed old emulator driver script. #

Total comments: 24

Patch Set 4 : Removed install stuff to install script and addressed reviews. #

Total comments: 27

Patch Set 5 : Addressed pasko/digits nits and comments. #

Total comments: 6

Patch Set 6 : Addressed frankf's comments. #

Total comments: 14

Patch Set 7 : Nits, filename change for install script, checks in avd.py. #

Total comments: 2

Patch Set 8 : Do not catch exceptions so that stack trace is revealed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -74 lines) Patch
A build/android/avd.py View 1 2 3 4 5 6 1 chunk +65 lines, -0 lines 0 comments Download
D build/android/emulator.py View 1 2 1 chunk +0 lines, -32 lines 0 comments Download
A build/android/install_emulator_deps.py View 1 2 3 4 5 6 7 1 chunk +147 lines, -0 lines 0 comments Download
M build/android/pylib/constants.py View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M build/android/pylib/utils/emulator.py View 1 2 3 4 5 6 8 chunks +39 lines, -42 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
navabi
https://codereview.chromium.org/12407004/diff/1/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/12407004/diff/1/build/android/avd.py#newcode94 build/android/avd.py:94: """Copies system images from navabi shared directory into sdk.""" ...
7 years, 9 months ago (2013-03-05 08:09:48 UTC) #1
navabi
To reviewers: https://sites.google.com/a/google.com/clank/engineering/testing/testing-with-avd-s The above wiki explains how to use the script. I would like ...
7 years, 9 months ago (2013-03-05 08:19:26 UTC) #2
navabi
https://codereview.chromium.org/12407004/diff/1/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/12407004/diff/1/build/android/avd.py#newcode142 build/android/avd.py:142: new_cwd = os.path.join(os.getcwd(), '..', '..', '..', '..') Fix: This ...
7 years, 9 months ago (2013-03-06 01:30:27 UTC) #3
navabi
PTAL. Big changes (some from discussion with pasko): - SDK is no longer checked out ...
7 years, 9 months ago (2013-03-14 02:39:47 UTC) #4
pasko-google - do not use
Generally a good improvement. Main note is that it would be more convenient to separate ...
7 years, 9 months ago (2013-03-14 15:46:28 UTC) #5
navabi
Thanks Egor for the helpful review. PTAL when you have a chance. https://codereview.chromium.org/12407004/diff/8001/build/android/avd.py File build/android/avd.py ...
7 years, 9 months ago (2013-03-20 21:40:16 UTC) #6
pasko-google - do not use
Thanks, Armand. Generally everything looks good, so LGTM to unblock this. Please address my comments ...
7 years, 9 months ago (2013-03-21 12:08:37 UTC) #7
digit1
https://codereview.chromium.org/12407004/diff/14001/build/android/install-emulator-deps.py File build/android/install-emulator-deps.py (right): https://codereview.chromium.org/12407004/diff/14001/build/android/install-emulator-deps.py#newcode106 build/android/install-emulator-deps.py:106: logging.critical('ERROR: Did not install KVM. Make sure Intel KVM ...
7 years, 9 months ago (2013-03-21 12:48:52 UTC) #8
navabi
https://codereview.chromium.org/12407004/diff/14001/build/android/install-emulator-deps.py File build/android/install-emulator-deps.py (right): https://codereview.chromium.org/12407004/diff/14001/build/android/install-emulator-deps.py#newcode16 build/android/install-emulator-deps.py:16: import shutil On 2013/03/21 12:08:37, pasko wrote: > import ...
7 years, 9 months ago (2013-03-26 21:27:30 UTC) #9
navabi
Thanks pasko and digit. PTAL. I have addressed all the suggestions/comments, except for the one ...
7 years, 9 months ago (2013-03-26 21:35:42 UTC) #10
frankf
https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py File build/android/install-emulator-deps.py (right): https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py#newcode33 build/android/install-emulator-deps.py:33: def RunCommand(args): You can use pylib.cmd_helper here https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py#newcode166 build/android/install-emulator-deps.py:166: ...
7 years, 9 months ago (2013-03-26 21:42:44 UTC) #11
navabi
https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py File build/android/install-emulator-deps.py (right): https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py#newcode33 build/android/install-emulator-deps.py:33: def RunCommand(args): On 2013/03/26 21:42:44, frankf wrote: > You ...
7 years, 9 months ago (2013-03-26 23:05:38 UTC) #12
frankf
lgtm with nits. https://codereview.chromium.org/12407004/diff/26001/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/12407004/diff/26001/build/android/avd.py#newcode24 build/android/avd.py:24: new_cwd = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', Declare ...
7 years, 9 months ago (2013-03-27 05:16:08 UTC) #13
pasko-google - do not use
https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py File build/android/install-emulator-deps.py (right): https://codereview.chromium.org/12407004/diff/21001/build/android/install-emulator-deps.py#newcode180 build/android/install-emulator-deps.py:180: if CheckKVM(): On 2013/03/26 21:35:43, navabi wrote: > Copied ...
7 years, 9 months ago (2013-03-27 13:31:16 UTC) #14
pasko-google - do not use
Ok, the order of checking for KVM should not block the whole commit. LGTM with ...
7 years, 9 months ago (2013-03-27 13:44:41 UTC) #15
navabi
Yes I mean ARM. Thanks.
7 years, 9 months ago (2013-03-27 15:16:41 UTC) #16
navabi
https://codereview.chromium.org/12407004/diff/26001/build/android/avd.py File build/android/avd.py (right): https://codereview.chromium.org/12407004/diff/26001/build/android/avd.py#newcode24 build/android/avd.py:24: new_cwd = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', On 2013/03/27 05:16:08, frankf ...
7 years, 9 months ago (2013-03-27 17:13:35 UTC) #17
frankf
https://codereview.chromium.org/12407004/diff/33001/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/12407004/diff/33001/build/android/install_emulator_deps.py#newcode91 build/android/install_emulator_deps.py:91: except: This is dangerous as it hides any exceptions ...
7 years, 9 months ago (2013-03-27 18:12:14 UTC) #18
navabi
https://codereview.chromium.org/12407004/diff/33001/build/android/install_emulator_deps.py File build/android/install_emulator_deps.py (right): https://codereview.chromium.org/12407004/diff/33001/build/android/install_emulator_deps.py#newcode91 build/android/install_emulator_deps.py:91: except: On 2013/03/27 18:12:14, frankf wrote: > This is ...
7 years, 9 months ago (2013-03-27 19:07:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/navabi@google.com/12407004/37001
7 years, 9 months ago (2013-03-27 19:11:47 UTC) #20
commit-bot: I haz the power
7 years, 9 months ago (2013-03-28 00:23:36 UTC) #21
Message was sent while issue was closed.
Change committed as 191075

Powered by Google App Engine
This is Rietveld 408576698