Navigation Menu

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 MylesBorins committed Dec 17, 2019
1 parent 68b2b5c commit 7e941eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/test.py
Expand Up @@ -1184,6 +1184,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 7e941eb

Please sign in to comment.