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

Issue 550027: Refactor layout test scripts to get the dashboard work for other types (Closed)

Created:
10 years, 11 months ago by kinuko
Modified:
9 years, 7 months ago
Reviewers:
ojan
CC:
chromium-reviews_googlegroups.com, darin (slow to review), pam+watch_chromium.org, michaeln, brettw+cc_chromium.org, not_the_right_glider, ben+cc_chromium.org, John Grabowski, Erik does not do reviews, Alpha Left Google, jam, dank, apatrick_chromium, Aaron Boodman, stuartmorgan, fbarchard, awong, Paweł Hajdan Jr., kuchhal, Timur Iskhodzhanov, amit, scherkus (not reviewing), ncarter (slow), tim (not reviewing), Paul Godavari, idana
Visibility:
Public.

Description

Refactor layout test scripts to get the dashboard work for other types - refactor layout-test specific part out from json_results_generator.py - add test_output_xml_to_json to generate JSON files for other test types BUG=32152 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36621

Patch Set 1 #

Patch Set 2 : changed refactoring policy #

Total comments: 10

Patch Set 3 : reflect comments #

Patch Set 4 : reflect comments + rebase #

Total comments: 2

Patch Set 5 : updates + adding test_output_xml_to_json #

Total comments: 6

Patch Set 6 : fix the nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+434 lines, -196 lines) Patch
A webkit/tools/layout_tests/layout_package/json_layout_results_generator.py View 2 3 4 1 chunk +155 lines, -0 lines 0 comments Download
M webkit/tools/layout_tests/layout_package/json_results_generator.py View 1 2 3 4 12 chunks +139 lines, -191 lines 0 comments Download
M webkit/tools/layout_tests/run_webkit_tests.py View 1 2 3 4 5 4 chunks +10 lines, -5 lines 0 comments Download
A webkit/tools/layout_tests/test_output_xml_to_json.py View 5 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinuko
Hi Ojan, I've uploaded a snapshot. The code may still need to be changed, but ...
10 years, 11 months ago (2010-01-13 18:11:11 UTC) #1
ojan
This looks great. Mostly a few nits. http://codereview.chromium.org/550027/diff/2001/3001 File webkit/tools/layout_tests/layout_package/json_layout_results_generator.py (right): http://codereview.chromium.org/550027/diff/2001/3001#newcode17 webkit/tools/layout_tests/layout_package/json_layout_results_generator.py:17: SKIP_RESULT = ...
10 years, 11 months ago (2010-01-13 19:44:29 UTC) #2
kinuko
Thanks for reviewing, I've updated the code. http://codereview.chromium.org/550027/diff/2001/3001 File webkit/tools/layout_tests/layout_package/json_layout_results_generator.py (right): http://codereview.chromium.org/550027/diff/2001/3001#newcode17 webkit/tools/layout_tests/layout_package/json_layout_results_generator.py:17: SKIP_RESULT = ...
10 years, 11 months ago (2010-01-14 07:48:13 UTC) #3
ojan
LGTM. One nit. Also, JSONResultsGenerator changed a bunch today. Please be very careful with merging ...
10 years, 11 months ago (2010-01-15 02:54:47 UTC) #4
kinuko
I've merged the changes. I also added a new script that generates a results.json from ...
10 years, 11 months ago (2010-01-15 13:23:25 UTC) #5
ojan
LGTM http://codereview.chromium.org/550027/diff/4008/4012 File webkit/tools/layout_tests/test_output_xml_to_json.py (right): http://codereview.chromium.org/550027/diff/4008/4012#newcode69 webkit/tools/layout_tests/test_output_xml_to_json.py:69: continue Nit: Another I line break after the ...
10 years, 11 months ago (2010-01-15 19:38:48 UTC) #6
kinuko
10 years, 11 months ago (2010-01-19 11:22:09 UTC) #7
Thanks for your review!  I'm going to submit it if I don't hear red flags from
you.

http://codereview.chromium.org/550027/diff/4008/4012
File webkit/tools/layout_tests/test_output_xml_to_json.py (right):

http://codereview.chromium.org/550027/diff/4008/4012#newcode69
webkit/tools/layout_tests/test_output_xml_to_json.py:69: continue
On 2010/01/15 19:38:48, ojan wrote:
> Nit: Another I line break after the continue might make this a bit more
> readable. It's easier at a quick glance to notice the continue statement that
> way.

Done.

http://codereview.chromium.org/550027/diff/4008/4012#newcode75
webkit/tools/layout_tests/test_output_xml_to_json.py:75: time_in_sec =
float(testcase.getAttribute('time'))
On 2010/01/15 19:38:48, ojan wrote:
> nit: this should be moved down between lines 77 and 78 since it's not used
until
> line 78. or just drop the local variable entirely.

Done.

http://codereview.chromium.org/550027/diff/4008/4012#newcode99
webkit/tools/layout_tests/test_output_xml_to_json.py:99: if
options.results_directory.startswith("/"):
On 2010/01/15 19:38:48, ojan wrote:
> Do you need the if-check? GetAbsolutePath looks to me like it's a noop if it's
> already absolute, but I might be reading it wrong.

Well, I guess we don't need it.  The code was originally from
run_webkit_tests.py.  Removed the part.

Powered by Google App Engine
This is Rietveld 408576698