File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
compiler/test/dotty/tools/dotc/coverage Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,15 @@ class CoverageTests:
4141 lines
4242 end fixWindowsPaths
4343
44- Files .walk(dir).filter(scalaFile.matches).forEach(p => {
45- val path = p
44+ def runOnFile (p : Path ): Boolean =
45+ scalaFile.matches(p) &&
46+ (Properties .testsFilter.isEmpty || Properties .testsFilter.exists(p.toString.contains))
47+
48+ Files .walk(dir).filter(runOnFile).forEach(path => {
4649 val fileName = path.getFileName.toString.stripSuffix(" .scala" )
4750 val targetDir = computeCoverageInTmp(path, dir, run)
4851 val targetFile = targetDir.resolve(s " scoverage.coverage " )
49- val expectFile = p.resolveSibling(s " $fileName.scoverage.check " )
50-
52+ val expectFile = path.resolveSibling(s " $fileName.scoverage.check " )
5153 if updateCheckFiles then
5254 Files .copy(targetFile, expectFile, StandardCopyOption .REPLACE_EXISTING )
5355 else
You can’t perform that action at this time.
0 commit comments