Skip to content

Commit cd9319f

Browse files
authored
Merge pull request scala#77 from martijnhoekstra/haltonbadfile
dont run all tests if there are invalid tests
2 parents fe11169 + 4b5bfde commit cd9319f

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)