Skip to content

Commit

Permalink
test: do not fail SLOW tests if they are not slow
Browse files Browse the repository at this point in the history
PR-URL: #25868
Refs: #25867
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
  • Loading branch information
hashseed authored and addaleax committed Feb 6, 2019
1 parent bd771d9 commit 025a7c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1238,6 +1238,9 @@ def ClassifyTests(self, cases, env):
outcomes = reduce(set.union, outcomes_list, set())
unused_rules.difference_update(matches)
case.outcomes = set(outcomes) or set([PASS])
# slow tests may also just pass.
if SLOW in case.outcomes:
case.outcomes.add(PASS)
result.append(case)
return result, unused_rules

Expand Down

0 comments on commit 025a7c3

Please sign in to comment.