Bug 93723 - [NRWT] The nrwt should check the contents of the skipped files with --lint-test-files
Summary: [NRWT] The nrwt should check the contents of the skipped files with --lint-te...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kristóf Kosztyó
URL:
Keywords: NRWT
Depends on:
Blocks: 64491
  Show dependency treegraph
 
Reported: 2012-08-10 08:30 PDT by Kristóf Kosztyó
Modified: 2012-08-29 06:09 PDT (History)
8 users (show)

See Also:


Attachments
proposed fix (1.36 KB, patch)
2012-08-15 06:33 PDT, Kristóf Kosztyó
dpranke: review-
Details | Formatted Diff | Diff
proposed fix (3.04 KB, patch)
2012-08-28 08:14 PDT, Kristóf Kosztyó
dpranke: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>