Bug 92527 - nrwt: clean up handling of 'expected' stats in the non-default cases
Summary: nrwt: clean up handling of 'expected' stats in the non-default cases
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dirk Pranke
URL:
Keywords:
Depends on: 92736
Blocks: 89267
  Show dependency treegraph
 
Reported: 2012-07-27 12:04 PDT by Dirk Pranke
Modified: 2012-07-31 03:40 PDT (History)
3 users (show)

See Also:


Attachments
Patch (22.04 KB, patch)
2012-07-27 12:18 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff
remove wontfix from add_skipped_tests, expectation_for_skipped_tests (21.55 KB, patch)
2012-07-30 16:51 PDT, Dirk Pranke
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Pranke 2012-07-27 12:04:30 PDT
nrwt: clean up handling of 'expected' stats and interaction with --run-part and --run-chunk
Comment 1 Dirk Pranke 2012-07-27 12:18:06 PDT
Created attachment 155017 [details]
Patch
Comment 2 Dirk Pranke 2012-07-27 12:20:33 PDT
the interplay of --iterations, --repeat-each, -run-part, and -run-chunk with the way we logged how many tests to run and what we expected the results to be was confusing and badly layered.

This patch attempts to clean that up, and was necessary in order to split the finding, chunking, and sharding of tests out from the running of tests without having all sorts of weird callbacks.

Apart from logging slightly different numbers, there should be no functional changes in this patch; in particular; the contents of results.json should be unchanged.
Comment 3 Tony Chang 2012-07-30 15:33:59 PDT
Comment on attachment 155017 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=155017&action=review

> Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py:887
> +    def add_skipped_tests(self, tests_to_skip, wontfix=True):

I don't see either of the callers passing in False for wontfix.  Can we drop this param?
Comment 4 Dirk Pranke 2012-07-30 16:40:08 PDT
(In reply to comment #3)
> (From update of attachment 155017 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=155017&action=review
> 
> > Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py:887
> > +    def add_skipped_tests(self, tests_to_skip, wontfix=True):
> 
> I don't see either of the callers passing in False for wontfix.  Can we drop this param?

Good catch. It's not clear when tests skipped via the Skipped file, the command line, or because we're only running parts of the test should be WONTFIX or not, but I'm not sure it matters that much, either.
Comment 5 Dirk Pranke 2012-07-30 16:51:03 PDT
Created attachment 155400 [details]
remove wontfix from add_skipped_tests, expectation_for_skipped_tests
Comment 6 Dirk Pranke 2012-07-30 17:02:03 PDT
Committed r124116: <http://trac.webkit.org/changeset/124116>