diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-03-31 13:25:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-31 13:25:45 +0200 |
commit | a0c0b605110980abb5d993dadcc943d148e8e262 (patch) | |
tree | b2e2a4139515abd97e0c242fee273ed249ce580c /compiler | |
parent | 4f53a1d789fa68c25d885114d59a7971a795a1d0 (diff) | |
parent | bbd9aeb68b8e1690c24a598c55fc7c1acc89b71f (diff) | |
download | dotty-a0c0b605110980abb5d993dadcc943d148e8e262.tar.gz dotty-a0c0b605110980abb5d993dadcc943d148e8e262.tar.bz2 dotty-a0c0b605110980abb5d993dadcc943d148e8e262.zip |
Merge pull request #2160 from dotty-staging/make-testing-more-robust
Make testing more robust
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/test/dotty/tools/dotc/ParallelTesting.scala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/test/dotty/tools/dotc/ParallelTesting.scala b/compiler/test/dotty/tools/dotc/ParallelTesting.scala index 289351d81..a81eb4d3a 100644 --- a/compiler/test/dotty/tools/dotc/ParallelTesting.scala +++ b/compiler/test/dotty/tools/dotc/ParallelTesting.scala @@ -920,9 +920,8 @@ trait ParallelTesting { self => private def compilationTargets(sourceDir: JFile): (List[JFile], List[JFile]) = sourceDir.listFiles.foldLeft((List.empty[JFile], List.empty[JFile])) { case ((dirs, files), f) => if (f.isDirectory) (f :: dirs, files) - else if (f.getName.endsWith(".check")) (dirs, files) - else if (f.getName.endsWith(".flags")) (dirs, files) - else (dirs, f :: files) + else if (isSourceFile(f)) (dirs, f :: files) + else (dirs, files) } /** Gets the name of the calling method via reflection. |