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

Issue 14187007: GM: allow caller to specify which result types trigger an error (Closed)

Created:
7 years, 8 months ago by epoger
Modified:
7 years, 8 months ago
Reviewers:
scroggo, borenet
CC:
skia-review_googlegroups.com, scroggo
Visibility:
Public.

Description

GM: allow caller to specify which result types trigger an error Committed: https://code.google.com/p/skia/source/detail?r=8652

Patch Set 1 #

Total comments: 8

Patch Set 2 : sync_to_r8639 #

Patch Set 3 : incorporate_Erics_suggestions #

Patch Set 4 : sync_to_r8651 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -12 lines) Patch
M gm/gm_error.h View 1 2 3 2 chunks +36 lines, -0 lines 0 comments Download
M gm/gmmain.cpp View 1 2 3 6 chunks +35 lines, -8 lines 0 comments Download
A + gm/tests/outputs/ignore-expectations-mismatch/output-expected/command_line View 1 chunk +1 line, -1 line 0 comments Download
A + gm/tests/outputs/ignore-expectations-mismatch/output-expected/json-summary.txt View 0 chunks +-1 lines, --1 lines 0 comments Download
A + gm/tests/outputs/ignore-expectations-mismatch/output-expected/return_value View 1 chunk +1 line, -1 line 0 comments Download
A + gm/tests/outputs/ignore-expectations-mismatch/output-expected/stderr View 0 chunks +-1 lines, --1 lines 0 comments Download
A + gm/tests/outputs/ignore-expectations-mismatch/output-expected/stdout View 1 chunk +4 lines, -4 lines 0 comments Download
M gm/tests/run.sh View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
epoger
Created to fulfill the need for a --noFailOnMismatch option, as noted in https://goto.google.com/ChecksumRemainingSteps
7 years, 8 months ago (2013-04-11 21:05:04 UTC) #1
borenet
Nice! LGTM, with a couple of questions. Not sure what happened with the trybots - ...
7 years, 8 months ago (2013-04-12 00:29:44 UTC) #2
epoger
PTAL at patchset 3... I'll try the trybots again, while we're at it. https://codereview.chromium.org/14187007/diff/1/gm/gm_error.h File ...
7 years, 8 months ago (2013-04-12 02:44:43 UTC) #3
epoger
On 2013/04/12 00:29:44, borenet wrote: > Not sure what happened with the trybots > - ...
7 years, 8 months ago (2013-04-12 03:21:47 UTC) #4
borenet
On 2013/04/12 03:21:47, epoger wrote: > On 2013/04/12 00:29:44, borenet wrote: > > Not sure ...
7 years, 8 months ago (2013-04-12 11:55:26 UTC) #5
borenet
https://codereview.chromium.org/14187007/diff/1/gm/gm_error.h File gm/gm_error.h (right): https://codereview.chromium.org/14187007/diff/1/gm/gm_error.h#newcode69 gm/gm_error.h:69: if (0 == strcmp(name, "NoGpuContext")) { On 2013/04/12 02:44:43, ...
7 years, 8 months ago (2013-04-12 11:55:37 UTC) #6
epoger
On 2013/04/12 11:55:26, borenet wrote: > On 2013/04/12 03:21:47, epoger wrote: > Did you try ...
7 years, 8 months ago (2013-04-12 14:07:43 UTC) #7
epoger
Committed patchset #4 manually as r8652 (presubmit successful).
7 years, 8 months ago (2013-04-12 14:11:42 UTC) #8
epoger
On 2013/04/12 14:07:43, epoger wrote: > On 2013/04/12 11:55:26, borenet wrote: > > On 2013/04/12 ...
7 years, 8 months ago (2013-04-12 14:16:38 UTC) #9
borenet
On 2013/04/12 14:16:38, epoger wrote: > On 2013/04/12 14:07:43, epoger wrote: > > On 2013/04/12 ...
7 years, 8 months ago (2013-04-12 14:18:56 UTC) #10
scroggo
7 years, 8 months ago (2013-04-12 15:24:30 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/14187007/diff/1/gm/gmmain.cpp
File gm/gmmain.cpp (right):

https://codereview.chromium.org/14187007/diff/1/gm/gmmain.cpp#newcode1205
gm/gmmain.cpp:1205: // values differently, so that the first definition of
ignoreErrorTypes worked?
On 2013/04/12 02:44:43, epoger wrote:
> On 2013/04/12 00:29:45, borenet wrote:
> > Good question for scroggo@.  I'm not terribly familiar with
> SkCommandLineFlags.
> 
> Yeah, I wanted to commit this change and then see if we can improve
> SkCommandLineFlags (or teach me how to use it properly!).
> 
> I tried using the ifdef-ed out approach, and whenever gm was run without
> --ignoreErrorTypes specified (i.e., when it evaulated the default for this
> option), I got this error:
> 
> GM: cannot find ErrorType with name 'Exercise the pdf rendering test pass.'
> 
> (That string of course coming from the definition of the pdf flag further
> down!!!  Yikes!!!)

Created https://code.google.com/p/skia/issues/detail?id=1237

Powered by Google App Engine
This is Rietveld 408576698