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

Issue 7806008: Add two command-line parameters and one bug fix for the layout test analyzer. (Closed)

Created:
9 years, 3 months ago by imasaki1
Modified:
9 years, 3 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, Paweł Hajdan Jr., acolwell+watch_chromium.org, annacc+watch_chromium.org, pam+watch_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Add one commandline paramter and one bug fix for the layout test analyzer. * Bug fix: fix the issue when there is some files with file names other than '%Y-%m-%d-%H' format in result directory. * Add two command-line parameter to choose test group CSV file and test group name. The example of such CSV file can be found in testname/media.csv. The test group name shows up in the status email subject. This is necessary to make this analyzer works for arbitrary test group name. * minor doc change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98883

Patch Set 1 #

Patch Set 2 : Minor change after double check. #

Patch Set 3 : Adding test name group name in commandline option. #

Total comments: 15

Patch Set 4 : Modification based on CR comments. #

Total comments: 1

Patch Set 5 : Modified based on CR comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -14 lines) Patch
M media/tools/layout_tests/layouttest_analyzer.py View 1 2 3 5 chunks +20 lines, -4 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer_helpers.py View 1 2 3 4 4 chunks +20 lines, -9 lines 0 comments Download
M media/tools/layout_tests/layouttest_analyzer_helpers_unittest.py View 1 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
imasaki1
Thank you.
9 years, 3 months ago (2011-08-30 05:43:25 UTC) #1
dennis_jeffrey
http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py File media/tools/layout_tests/layouttest_analyzer.py (right): http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py#newcode86 media/tools/layout_tests/layouttest_analyzer.py:86: layouttests = LayoutTests(csv_file_path=os.path.join( No need to call "os.path.join()" here, ...
9 years, 3 months ago (2011-08-30 20:57:48 UTC) #2
imasaki1
On 2011/08/30 20:57:48, dennis_jeffrey wrote: > http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py > File media/tools/layout_tests/layouttest_analyzer.py (right): > > http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py#newcode86 > ...
9 years, 3 months ago (2011-08-30 21:42:49 UTC) #3
imasaki1
Thanks. I addressed all issues except for the last one. http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py File media/tools/layout_tests/layouttest_analyzer.py (right): http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/layouttest_analyzer.py#newcode86 ...
9 years, 3 months ago (2011-08-30 21:47:39 UTC) #4
dennis_jeffrey
9 years, 3 months ago (2011-08-30 22:49:07 UTC) #5
LGTM

Just one minor nit to address before submitting.  Thank you!

http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/lay...
File media/tools/layout_tests/layouttest_analyzer_helpers.py (right):

http://codereview.chromium.org/7806008/diff/3001/media/tools/layout_tests/lay...
media/tools/layout_tests/layouttest_analyzer_helpers.py:388: if latest_date ==
None or latest_date < item_date:
On 2011/08/30 21:47:39, imasaki1 wrote:
> On 2011/08/30 20:57:48, dennis_jeffrey wrote:
> > The goal of this function is to find the most recent time from a list,
right? 
> > If so, then should the comparison here be reversed?
> > 
> > latest_date > item_date
> > 
> > According to python's datetime documentation, "datetime1 < datetime2 if
> > datetime1 precedes datetime2 in time".
> 
> ? I think this is working as intended.

You're right - it is working as intended and there's also a unit test for this
case.  Sorry about that.

http://codereview.chromium.org/7806008/diff/7001/media/tools/layout_tests/lay...
File media/tools/layout_tests/layouttest_analyzer_helpers.py (right):

http://codereview.chromium.org/7806008/diff/7001/media/tools/layout_tests/lay...
media/tools/layout_tests/layouttest_analyzer_helpers.py:315: localtime)
indent this line by 1 fewer space

Powered by Google App Engine
This is Rietveld 408576698