Bug 140949

Summary: [iOS] run-webkit-tests --platform=ios* --lint-test-files does not work
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ddkilzer, glenn
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: iPhone / iPad   
OS: iOS 8.1   
Attachments:
Description Flags
Patch
none
Patch none

Description Daniel Bates 2015-01-27 12:05:53 PST
run-webkit-tests --platform=ios* --lint-test-files does not link check the iOS TestExpectation files.
Comment 1 Daniel Bates 2015-01-27 12:19:25 PST
Notice that it is sufficient to include "ios-simulator" in the list of ports without builders so as to lint TestExpectation files LayoutTests/platform/ios-simulator/TestExpectations and LayoutTests/platform/ios-simulator-wk1/TestExpectations by <http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/lint_test_expectations.py?rev=160756#L56> and <http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/port/factory.py?rev=179162#L124> and <http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/port/ios.py?rev=179199#L179>.

A similar argument can be made to show that ios-simulator-wk2 will instantiate a IOSSimulatorPort object where IOSSimulatorPort.get_option('webkit_test_runner') evaluates to true and hence we will lint LayoutTests/platform/ios-simulator-wk2/TestExpectations by <http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/port/ios.py?rev=179199#L177>.
Comment 2 Daniel Bates 2015-01-27 12:20:26 PST
Created attachment 245460 [details]
Patch
Comment 3 Daniel Bates 2015-01-27 14:03:01 PST
Created attachment 245467 [details]
Patch
Comment 4 Daniel Bates 2015-01-27 14:07:48 PST
Comment on attachment 245467 [details]
Patch

Clearing flags on attachment: 245467

Committed r179216: <http://trac.webkit.org/changeset/179216>
Comment 5 Daniel Bates 2015-01-27 14:07:52 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 David Kilzer (:ddkilzer) 2015-02-28 17:25:25 PST
(In reply to comment #4)
> Comment on attachment 245467 [details]
> Patch
> 
> Clearing flags on attachment: 245467
> 
> Committed r179216: <http://trac.webkit.org/changeset/179216>

FWIW, this fix regressed this performance fix:

Bug 135409: [iOS] run-webkit-tests runs webkit-build-directory on every test

However, that regression was fixed by r180845:
<http://trac.webkit.org/changeset/180845>