Skip to content

Commit 025a7c3

Browse files
hashseedaddaleax
authored andcommitted
test: do not fail SLOW tests if they are not slow
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]>
1 parent bd771d9 commit 025a7c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/test.py

+3
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,9 @@ def ClassifyTests(self, cases, env):
12381238
outcomes = reduce(set.union, outcomes_list, set())
12391239
unused_rules.difference_update(matches)
12401240
case.outcomes = set(outcomes) or set([PASS])
1241+
# slow tests may also just pass.
1242+
if SLOW in case.outcomes:
1243+
case.outcomes.add(PASS)
12411244
result.append(case)
12421245
return result, unused_rules
12431246

0 commit comments

Comments
 (0)