Bug 27893

Summary: run-webkit-tests Skipped Only mode includes tests that are skipped by other flags.
Product: WebKit Reporter: Mike Fenton <mifenton>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, manyoso
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests
none
Updated patch without skipped=only-all mode
manyoso: review-
Updated changeLog and rename of function. abarth: commit-queue+

Mike Fenton
Reported 2009-07-31 13:09:52 PDT
Current when run-webkit-tests is run with the --skipped=only option all tests currently in the Skipped file for the platform are run without consideration for other flags like -no-http or platform defaults for the tests configurations. The current mode of --skipped=only should be transitioned to a new mode (--skipped=only-all) which maintains the current behavior. --skipped=only should be updated to correctly use the existing flags in the script to only run skipped tests that the functionality exists to potentially pass the test. This update will match the behavior of --skipped=ignore which does obey flags used by run-webkit-tests.
Attachments
Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests (4.12 KB, patch)
2009-07-31 13:32 PDT, Mike Fenton
no flags
Updated patch without skipped=only-all mode (2.05 KB, patch)
2009-08-04 07:34 PDT, Mike Fenton
manyoso: review-
Updated changeLog and rename of function. (2.15 KB, patch)
2009-08-04 08:27 PDT, Mike Fenton
abarth: commit-queue+
Mike Fenton
Comment 1 2009-07-31 13:32:02 PDT
Created attachment 33899 [details] Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests
Eric Seidel (no email)
Comment 2 2009-07-31 14:34:11 PDT
Comment on attachment 33899 [details] Patch to improve the behavior of --skipped=only and add --skipped=only-all mode to run-webkit-tests I'm not sure only-all is useful, maybe it is.
Mike Fenton
Comment 3 2009-08-04 05:25:35 PDT
I tend to agree, however, I didn't want to remove the old functionality entirely.
Adam Treat
Comment 4 2009-08-04 05:41:39 PDT
I happen to agree with Eric. This is a bug fix pure and simple. No need for --only-all which is confusing to me.
Mike Fenton
Comment 5 2009-08-04 07:34:14 PDT
Created attachment 34059 [details] Updated patch without skipped=only-all mode I've updated the patch to strictly fix the --skipped=only mode. No only-all mode is included in this patch.
Adam Treat
Comment 6 2009-08-04 07:58:39 PDT
Comment on attachment 34059 [details] Updated patch without skipped=only-all mode > +2009-07-31 Mike Fenton <mike.fenton@torchmobile.com> > + > + Reviewed by NOBODY (OOPS!). > + > + Change --skipped=only mode to use $ignoreDirectories to only > + run tests that configured by the script, or by the default > + values used in the script. I think the ChangeLog could do a better job of explaining what is happening here. Basically, you want --skipped=only to honor the --no-http flag. That is not currently happening. If I understand things correctly, your patch explicitly fixes this by making --skipped=only honor the ignoreDirectories, one of which is 'http' if --no-http is passed. Spell this out as the explicit goal in the ChangeLog and how it was accomplished. Also, it is not clear to me that this patch accomplishes what the bug report says it does: to make --skipped=only honor *all* other flags. It seems that this bugfix was rather narrowly tailored to --no-http. Which is fine! But it is good to be clear about this. > +sub ignoreFileByDirectory { > + my($filePath) = @_; > + foreach my $ignoredDir (keys %ignoredDirectories) { > + if ($filePath =~ m/^$ignoredDir/) { > + return 1; > + } > + } Perhaps 'fileShouldBeIgnored' instead to be more descriptive? r- for ChangeLog mostly.
Mike Fenton
Comment 7 2009-08-04 08:27:34 PDT
Created attachment 34064 [details] Updated changeLog and rename of function. This patch makes the suggested changes to the previous patch. 1) Rename the function. 2) Update the changelog to more clearly identify the reason for the change.
Adam Barth
Comment 8 2009-08-04 12:06:14 PDT
Comment on attachment 34064 [details] Updated changeLog and rename of function. Clearing review flag on attachment: 34064 Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKitTools/ChangeLog M WebKitTools/Scripts/run-webkit-tests Committed r46771 M WebKitTools/ChangeLog M WebKitTools/Scripts/run-webkit-tests r46771 = 042145e38e9fb864caea4ce6b7799aa60e67b093 (trunk) No changes between current HEAD and refs/remotes/trunk Resetting to the latest refs/remotes/trunk http://trac.webkit.org/changeset/46771
Adam Barth
Comment 9 2009-08-04 12:06:18 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.