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 <riclau@uk.ibm.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
  • Loading branch information
hashseed authored and refack committed Feb 4, 2019
1 parent 6b7c402 commit dfe5f8f
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 dfe5f8f

Please sign in to comment.