@@ -146,25 +146,24 @@ abstract class CompilerTest extends DottyTest {
146
146
(implicit defaultOptions : List [String ]): Unit =
147
147
compileDir(prefix, dirName, args, xerrors, true )
148
148
149
- def runFiles (path : String , args : List [String ] = Nil , verbose : Boolean = true )
150
- (implicit defaultOptions : List [String ]): Unit =
151
- compileFiles(path, args, verbose, true )
152
-
153
149
/** Compiles each source in the directory path separately by calling
154
150
* compileFile resp. compileDir. */
155
- def compileFiles (path : String , args : List [String ] = Nil , verbose : Boolean = true , isRunTest : Boolean = false )
151
+ def compileFiles (path : String , args : List [String ] = Nil , verbose : Boolean = true , runTest : Boolean = false )
156
152
(implicit defaultOptions : List [String ]): Unit = {
157
153
val dir = Directory (path)
158
154
val fileNames = dir.files.toArray.map(_.jfile.getName).filter(name => (name endsWith " .scala" ) || (name endsWith " .java" ))
159
155
for (name <- fileNames) {
160
156
if (verbose) println(s " testing $path$name" )
161
- compileFile(path, name, args, 0 , " " , isRunTest )
157
+ compileFile(path, name, args, 0 , " " , runTest )
162
158
}
163
159
for (subdir <- dir.dirs) {
164
160
if (verbose) println(s " testing $subdir" )
165
- compileDir(path, subdir.jfile.getName, args, 0 , isRunTest )
161
+ compileDir(path, subdir.jfile.getName, args, 0 , runTest )
166
162
}
167
163
}
164
+ def runFiles (path : String , args : List [String ] = Nil , verbose : Boolean = true )
165
+ (implicit defaultOptions : List [String ]): Unit =
166
+ compileFiles(path, args, verbose, true )
168
167
169
168
/** Compiles the given list of code files. */
170
169
def compileList (testName : String , files : List [String ], args : List [String ] = Nil , xerrors : Int = 0 )
0 commit comments