Lines Matching refs:rule
73 _rules: {variant: {test name: [rule]}}
74 _prefix_rules: {variant: {test name prefix: [rule]}}
101 that all matching tests were skipped by another rule before evaluating X.
129 for rule, value in (
132 if (rule, variant) not in used_rules:
137 print('Unused rule: %s -> %s (%s)' % (rule, value, variant_desc))
182 def _ParseOutcomeList(rule, outcomes, variables, target_dict):
210 if rule in target_dict:
211 # A FAIL without PASS in one rule has always precedence over a single
213 # in a rule with a modifier (e.g. PASS, SLOW) would be joined to a FAIL
214 # from another rule (which intended to mark a test as FAIL and not as
216 if _JoinsPassAndFail(target_dict[rule], result):
217 target_dict[rule] -= set([PASS])
218 if _JoinsPassAndFail(result, target_dict[rule]):
220 target_dict[rule] |= result
222 target_dict[rule] = result
282 for rule, outcome_list in list(section.items()):
283 assert type(rule) == str
285 if rule[-1] == '*':
286 _ParseOutcomeList(rule[:-1], outcome_list, variables, prefix_rules)
288 _ParseOutcomeList(rule, outcome_list, variables, rules)
320 for rule in section:
321 _assert(type(rule) == str, "Rule key must be a string")
322 _assert(not rule.startswith(root_prefix),
323 "Suite name prefix must not be used in rule keys")
324 _assert(not rule.endswith('.js'),
325 ".js extension must not be used in rule keys.")
326 _assert('*' not in rule or (rule.count('*') == 1 and rule[-1] == '*'),
327 "Only the last character of a rule key can be a wildcard")
328 if basename in JS_TEST_PATHS and '*' not in rule:
331 *(paths + [rule + ext])))
335 "missing file for %s test %s" % (basename, rule))