OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """A module to analyze test expectations for Webkit layout tests.""" | 5 """A module to analyze test expectations for Webkit layout tests.""" |
6 | 6 |
7 import urllib2 | 7 import urllib2 |
8 | 8 |
9 from webkitpy.layout_tests.models.test_expectations import * | 9 from webkitpy.layout_tests.models.test_expectations import * |
10 | 10 |
11 # Default location for chromium test expectation file. | 11 # Default location for chromium test expectation file. |
12 # TODO(imasaki): support multiple test expectations files. | 12 # TODO(imasaki): support multiple test expectations files. |
13 DEFAULT_TEST_EXPECTATIONS_LOCATION = ( | 13 DEFAULT_TEST_EXPECTATIONS_LOCATION = ( |
14 'http://src.chromium.org/blink/trunk/LayoutTests/TestExpectations') | 14 'http://src.chromium.org/blink/trunk/LayoutTests/TestExpectations') |
15 | 15 |
16 # The following is from test expectation syntax. The detail can be found in | 16 # The following is from test expectation syntax. See: |
17 # http://www.chromium.org/developers/testing/webkit-layout-tests#TOC-Test-Expect ations | 17 # https://chromium.googlesource.com/chromium/src/+/master/docs/testing/layout_te st_expectations.md |
Dirk Pranke
2016/11/15 22:24:55
same.
| |
18 # <decision> ::== [SKIP] [WONTFIX] [SLOW] | 18 # <decision> ::== [SKIP] [WONTFIX] [SLOW] |
19 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW'] | 19 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW'] |
20 # <config> ::== RELEASE | DEBUG | 20 # <config> ::== RELEASE | DEBUG |
21 CONFIG_NAMES = ['RELEASE', 'DEBUG'] | 21 CONFIG_NAMES = ['RELEASE', 'DEBUG'] |
22 # Only hard code keywords we don't expect to change. Determine the rest from | 22 # Only hard code keywords we don't expect to change. Determine the rest from |
23 # the format of the status line. | 23 # the format of the status line. |
24 KNOWN_TE_KEYWORDS = DECISION_NAMES + CONFIG_NAMES | 24 KNOWN_TE_KEYWORDS = DECISION_NAMES + CONFIG_NAMES |
25 | 25 |
26 | 26 |
27 class TestExpectations(object): | 27 class TestExpectations(object): |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 | 98 |
99 test_expectation_info['Comments'] = parsed.comment or '' | 99 test_expectation_info['Comments'] = parsed.comment or '' |
100 test_expectation_info['Bugs'] = parsed.bugs or []; | 100 test_expectation_info['Bugs'] = parsed.bugs or []; |
101 test_expectation_info['Platforms'] = parsed.specifiers or [] | 101 test_expectation_info['Platforms'] = parsed.specifiers or [] |
102 # Shovel the expectations and modifiers in as "<key>: True" entries. Ugly, | 102 # Shovel the expectations and modifiers in as "<key>: True" entries. Ugly, |
103 # but required by the rest of the pipeline for parsing. | 103 # but required by the rest of the pipeline for parsing. |
104 for m in parsed.expectations: | 104 for m in parsed.expectations: |
105 test_expectation_info[m] = True | 105 test_expectation_info[m] = True |
106 | 106 |
107 return parsed.name, test_expectation_info | 107 return parsed.name, test_expectation_info |
OLD | NEW |