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

Issue 16160008: Refactor rebaseline.py into functions ; no behavioral changes. (Closed)

Created:
7 years, 6 months ago by epoger
Modified:
7 years, 6 months ago
Reviewers:
bsalomon, Stephen White
CC:
skia-review_googlegroups.com, robertphillips, senorblanco
Visibility:
Public.

Description

Refactor rebaseline.py into functions ; no behavioral changes. R=senorblanco@chromium.org Committed: https://code.google.com/p/skia/source/detail?r=9318

Patch Set 1 #

Patch Set 2 : line_wraps_at_80 #

Total comments: 4

Patch Set 3 : add_a_sort #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -58 lines) Patch
M tools/rebaseline.py View 1 2 1 chunk +87 lines, -58 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
epoger
Ready for review at patchset 2. https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py#newcode1 tools/rebaseline.py:1: #!/usr/bin/python I have ...
7 years, 6 months ago (2013-05-29 16:19:37 UTC) #1
Stephen White
LGTM https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py#newcode1 tools/rebaseline.py:1: #!/usr/bin/python More my fault than yours, but we ...
7 years, 6 months ago (2013-05-29 16:45:52 UTC) #2
bsalomon
looks good to Stephen :)
7 years, 6 months ago (2013-05-29 16:58:54 UTC) #3
epoger
https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py File tools/rebaseline.py (right): https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py#newcode1 tools/rebaseline.py:1: #!/usr/bin/python On 2013/05/29 16:45:52, Stephen White wrote: > More ...
7 years, 6 months ago (2013-05-29 17:09:35 UTC) #4
epoger
Committed patchset #3 manually as r9318 (presubmit successful).
7 years, 6 months ago (2013-05-29 17:09:45 UTC) #5
Stephen White
7 years, 6 months ago (2013-05-29 17:11:38 UTC) #6
Message was sent while issue was closed.
On 2013/05/29 17:09:35, epoger wrote:
> https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py
> File tools/rebaseline.py (right):
> 
>
https://codereview.chromium.org/16160008/diff/2001/tools/rebaseline.py#newcode1
> tools/rebaseline.py:1: #!/usr/bin/python
> On 2013/05/29 16:45:52, Stephen White wrote:
> > More my fault than yours, but we should probably add some tests for this
> before
> > it gets much bigger. :)
> 
> Good idea.  What would you think of this approach: adding a --dry_run flag
that
> would make the tool print out what it would do, without actually doing it.

That sounds good, and generally useful, independent of testing.
 
> (Otherwise, I'm not sure how we could make a test that wouldn't hit SVN)

We'd have to stub/fake/mock it out somehow, I suppose. Might be worth pinging
dpranke@ to see how they handle testing for the Blink rebaseline tools.

> https://codereview.chromium.org/16160008/diff/8001/tools/rebaseline.py
> File tools/rebaseline.py (right):
> 
>
https://codereview.chromium.org/16160008/diff/8001/tools/rebaseline.py#newcod...
> tools/rebaseline.py:104: for expectations_subdir in
> sorted(subdir_mapping.keys()):
> Patchset 3 iterates over the platforms in deterministic order, which should
help
> with testing.

Powered by Google App Engine
This is Rietveld 408576698