Skip to content
Permalink
Browse files

test: do not fail SLOW tests if they are not slow

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 Feb 1, 2019
1 parent 68b2b5c commit 7e941eb17db2f11c01062fbd09262c2a6a03ec80
Showing with 3 additions and 0 deletions.
  1. +3 −0 tools/test.py
@@ -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

0 comments on commit 7e941eb

Please sign in to comment.
You can’t perform that action at this time.