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

Issue 8364020: Upstream: Test scripts for Android (phase 2) (Closed)

Created:
9 years, 2 months ago by michaelbai
Modified:
9 years, 2 months ago
CC:
chromium-reviews, John Grabowski, Jing Zhao
Visibility:
Public.

Description

Upstream: Test scripts for Android (phase 2) Currently only support run base_unittests BUG= TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106953

Patch Set 1 : init #

Total comments: 53

Patch Set 2 : Addressed comments #

Total comments: 14

Patch Set 3 : Address the comments and sync #

Patch Set 4 : sync again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1644 lines, -1 line) Patch
M build/android/android_commands.py View 1 chunk +0 lines, -1 line 0 comments Download
A build/android/base_test_runner.py View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
A build/android/chrome_test_server_spawner.py View 1 1 chunk +114 lines, -0 lines 0 comments Download
A build/android/flag_changer.py View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
A build/android/gtest_filter/base_unittests_disabled View 1 chunk +8 lines, -0 lines 0 comments Download
A build/android/gtest_filter/base_unittests_emulator_additional_disabled View 1 chunk +10 lines, -0 lines 0 comments Download
A build/android/lighttpd_server.py View 2 1 chunk +234 lines, -0 lines 0 comments Download
A build/android/run_tests.py View 1 1 chunk +208 lines, -0 lines 0 comments Download
A build/android/run_tests_helper.py View 1 1 chunk +134 lines, -0 lines 0 comments Download
A build/android/single_test_runner.py View 1 1 chunk +315 lines, -0 lines 0 comments Download
A build/android/test_package.py View 1 1 chunk +164 lines, -0 lines 0 comments Download
A build/android/test_package_executable.py View 1 1 chunk +153 lines, -0 lines 0 comments Download
A build/android/test_result.py View 1 2 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
michaelbai
Hi Nirnimesh Please help to review this one. Thanks
9 years, 2 months ago (2011-10-20 21:36:26 UTC) #1
Nirnimesh
I have mostly common style comments: 1. Non-public member vars should have _ prefix 2. ...
9 years, 2 months ago (2011-10-21 08:16:15 UTC) #2
Paweł Hajdan Jr.
Drive-by just to let you know about _known_ problems that have _happened_ (and are now ...
9 years, 2 months ago (2011-10-21 09:12:58 UTC) #3
michaelbai
Fixed the most of the common issue I could found. Remove the base_test_sharder from this ...
9 years, 2 months ago (2011-10-21 21:08:41 UTC) #4
joth
http://codereview.chromium.org/8364020/diff/6001/build/android/lighttpd_server.py File build/android/lighttpd_server.py (right): http://codereview.chromium.org/8364020/diff/6001/build/android/lighttpd_server.py#newcode116 build/android/lighttpd_server.py:116: # http://codereview.chromium.org/8364020/diff/2001/build/android/lighttpd_server.py This server has never shown any flakiness ...
9 years, 2 months ago (2011-10-24 10:10:27 UTC) #5
michaelbai
Hi Nirnimesh, PTAL
9 years, 2 months ago (2011-10-24 17:44:50 UTC) #6
Nirnimesh
LGTM http://codereview.chromium.org/8364020/diff/6001/build/android/base_test_runner.py File build/android/base_test_runner.py (right): http://codereview.chromium.org/8364020/diff/6001/build/android/base_test_runner.py#newcode42 build/android/base_test_runner.py:42: self._forwarder_base_url = 'http://localhost:%d' % self._forwarder_device_port 80+ chars http://codereview.chromium.org/8364020/diff/6001/build/android/flag_changer.py ...
9 years, 2 months ago (2011-10-24 18:02:34 UTC) #7
michaelbai
9 years, 2 months ago (2011-10-24 18:33:51 UTC) #8
http://codereview.chromium.org/8364020/diff/6001/build/android/base_test_runn...
File build/android/base_test_runner.py (right):

http://codereview.chromium.org/8364020/diff/6001/build/android/base_test_runn...
build/android/base_test_runner.py:42: self._forwarder_base_url =
'http://localhost:%d' % self._forwarder_device_port
On 2011/10/24 18:02:34, Nirnimesh wrote:
> 80+ chars

Done.

http://codereview.chromium.org/8364020/diff/6001/build/android/flag_changer.py
File build/android/flag_changer.py (right):

http://codereview.chromium.org/8364020/diff/6001/build/android/flag_changer.p...
build/android/flag_changer.py:37: self._old_flags + ' ' +
On 2011/10/24 18:02:34, Nirnimesh wrote:
> indent by 1 more space to the right

Done.

http://codereview.chromium.org/8364020/diff/6001/build/android/flag_changer.p...
build/android/flag_changer.py:38: ' '.join(new_flags))
On 2011/10/24 18:02:34, Nirnimesh wrote:
> same here

Done.

http://codereview.chromium.org/8364020/diff/6001/build/android/flag_changer.p...
build/android/flag_changer.py:41: 'chrome ' + ' '.join(flags))
On 2011/10/24 18:02:34, Nirnimesh wrote:
> and here

Done.

http://codereview.chromium.org/8364020/diff/6001/build/android/lighttpd_serve...
File build/android/lighttpd_server.py (right):

http://codereview.chromium.org/8364020/diff/6001/build/android/lighttpd_serve...
build/android/lighttpd_server.py:116: #
http://codereview.chromium.org/8364020/diff/2001/build/android/lighttpd_serve...
On 2011/10/24 10:10:27, joth wrote:
> This server has never shown any flakiness to date - at least, when used with
the
> option of automatically find a free port as we always do. This test connection
> method is an important part of ensuring its reliability.
> 
> 
> test_server.py is complex to use when the server and client are running on
> different host / target devices, due to the domain socket connection between
> test code and test server. 
> Any flakiness seen has been in the device to host port forwarding, which is
> common to both approaches.


Great! Remove the TODO.

http://codereview.chromium.org/8364020/diff/6001/build/android/test_result.py
File build/android/test_result.py (right):

http://codereview.chromium.org/8364020/diff/6001/build/android/test_result.py...
build/android/test_result.py:88: def GetAllBroken(self):
On 2011/10/24 18:02:34, Nirnimesh wrote:
> docstring please

Done.

http://codereview.chromium.org/8364020/diff/6001/build/android/test_result.py...
build/android/test_result.py:91: def LogFull(self):
On 2011/10/24 18:02:34, Nirnimesh wrote:
> docstring please

Done.

Powered by Google App Engine
This is Rietveld 408576698