Skip to content

Commit 4b5bfde

Browse files
dont run all tests if there are invalid tests
1 parent fe11169 commit 4b5bfde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partest/scala/tools/partest/nest/AbstractRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ abstract class AbstractRunner {
142142
val givenKinds = standardKinds filter config.parsed.isSet
143143
val kinds = (
144144
if (givenKinds.nonEmpty) givenKinds
145-
else if (miscTests.isEmpty) standardKinds // If no kinds, --grep, or individual tests were given, assume --all
145+
else if (miscTests.isEmpty && invalid.isEmpty) standardKinds // If no kinds, --grep, or individual tests were given, assume --all, unless there were invalid files specified
146146
else Nil
147147
)
148148
val kindsTests = kinds flatMap testsFor

0 commit comments

Comments
 (0)