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

Issue 8763: Change the test status file parser to fail if the line contains unparsed toke... (Closed)

Created:
12 years, 1 month ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Change the test status file parser to fail if the line contains unparsed tokens. Refactor the platform.system() tests and use macos when running on Mac. Committed: http://code.google.com/p/v8/source/detail?r=672

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -30 lines) Patch
M SConstruct View 2 chunks +2 lines, -21 lines 0 comments Download
M test/cctest/testcfg.py View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/test.py View 1 2 6 chunks +10 lines, -7 lines 0 comments Download
M tools/utils.py View 2 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Thygesen Gjesse
12 years, 1 month ago (2008-10-31 09:19:02 UTC) #1
Søren Thygesen Gjesse
On 2008/10/31 09:19:02, Søren Gjesse wrote: > Updated CL with platform.system() cleanup.
12 years, 1 month ago (2008-10-31 10:56:54 UTC) #2
Kasper Lund
LGTM. Comments: http://codereview.chromium.org/8763/diff/3/5 File tools/utils.py (right): http://codereview.chromium.org/8763/diff/3/5#newcode56 Line 56: def GuessSystem(): How about unifying this ...
12 years, 1 month ago (2008-10-31 12:41:52 UTC) #3
Christian Plesner Hansen
Lgtm http://codereview.chromium.org/8763/diff/3/4 File tools/test.py (right): http://codereview.chromium.org/8763/diff/3/4#newcode922 Line 922: return None 'return None' == 'return' http://codereview.chromium.org/8763/diff/3/5 ...
12 years, 1 month ago (2008-10-31 12:53:47 UTC) #4
Søren Thygesen Gjesse
12 years, 1 month ago (2008-10-31 13:17:41 UTC) #5
http://codereview.chromium.org/8763/diff/3/4
File tools/test.py (right):

http://codereview.chromium.org/8763/diff/3/4#newcode922
Line 922: return None
On 2008/10/31 12:53:47, Christian Plesner Hansen wrote:
> 'return None' == 'return'

The test.py file uses 'return None' all over the place.

http://codereview.chromium.org/8763/diff/3/5
File tools/utils.py (right):

http://codereview.chromium.org/8763/diff/3/5#newcode56
Line 56: def GuessSystem():
On 2008/10/31 12:41:52, Kasper Lund wrote:
> How about unifying this with the GuessOS in SConstruct? Maybe rename this
> GuessSystem to GuessOS let it return 'win32' in the windows case and use that
> from SConstruct?

Done. Renamed to GuessOS and used from SConstruct. Changed 'windows' to 'win32'.
There was no mentioning of 'windows in any test/**/*.status file.

http://codereview.chromium.org/8763/diff/3/5#newcode57
Line 57: system = platform.system()
On 2008/10/31 12:53:47, Christian Plesner Hansen wrote:
> What about doing .lower() here and then removing it elsewhere?

I decided against .lower() after all.

http://codereview.chromium.org/8763/diff/3/5#newcode68
Line 68: 
On 2008/10/31 12:41:52, Kasper Lund wrote:
> Extra new line here?

Added.

http://codereview.chromium.org/8763/diff/3/5#newcode70
Line 70: return GuessSystem() == 'windows'
On 2008/10/31 12:41:52, Kasper Lund wrote:
> If you change GuessSystem/GuessOS to return 'win'32 you should change this
too.

Done.

Powered by Google App Engine
This is Rietveld 408576698