Bug 93723

Summary: [NRWT] The nrwt should check the contents of the skipped files with --lint-test-files
Product: WebKit Reporter: Kristóf Kosztyó <kkristof>
Component: Tools / TestsAssignee: Kristóf Kosztyó <kkristof>
Severity: Normal CC: abarth, bank, dpranke, kadam, ojan, ossy, szledan, webkit.review.bot
Priority: P2 Keywords: NRWT
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 64491    
Description Flags
proposed fix
dpranke: review-
proposed fix dpranke: review+

Description Kristóf Kosztyó 2012-08-10 08:30:09 PDT
Now the nrwt doesn't warn if a test from the skipped list doesn't exist.
Comment 1 Dirk Pranke 2012-08-10 11:36:38 PDT
seems reasonable and a trivial change (test_expectations.py:889)
Comment 2 Kristóf Kosztyó 2012-08-15 06:33:46 PDT
Created attachment 158558 [details]
proposed fix
Comment 3 Dirk Pranke 2012-08-15 11:18:48 PDT
Comment on attachment 158558 [details]
proposed fix

expectation_for_skipped_test() won't set .warnings, so it seems unlikely that this branch would ever execute. Also, checking for one warning and then printing another seems like a bad idea. 

You should just test if the file (or directory) exists here and add a warning directly (or add that code into expectation_for_skipped_test(). 

Also, this change needs a test.
Comment 4 Kristóf Kosztyó 2012-08-28 08:14:13 PDT
Created attachment 160986 [details]
proposed fix
Comment 5 Dirk Pranke 2012-08-28 12:35:10 PDT
Comment on attachment 160986 [details]
proposed fix

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

> Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py:96
> +            _log.warning('The following test %s from the Skipped list doesn\'t exists!' % test_name)

Nit: "exist", not "exists", and I wouldn't use an exclamation point.
Comment 6 Kristóf Kosztyó 2012-08-29 06:09:50 PDT
Committed r126992: <http://trac.webkit.org/changeset/126992>