File tree 3 files changed +10
-7
lines changed
src/partest/scala/tools/partest/nest
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ class ConsoleFileManager extends FileManager {
65
65
}
66
66
67
67
CLASSPATH = {
68
- val libs = (srcDir / Directory (" lib" )).files filter (_ hasExtension " jar" ) map (_.normalize .path)
68
+ val libs = (srcDir / Directory (" lib" )).files filter (_ hasExtension " jar" ) map (_.toCanonical .path)
69
69
70
70
// add all jars in libs
71
71
(CLASSPATH :: libs.toList) mkString pathSeparator
@@ -74,11 +74,11 @@ class ConsoleFileManager extends FileManager {
74
74
def findLatest () {
75
75
NestUI .verbose(" test parent: " + testParent)
76
76
77
- def prefixFileWith (parent : File , relPath : String ) = (io.File (parent) / relPath).normalize
78
- def prefixFile (relPath : String ) = (testParent / relPath).normalize
77
+ def prefixFileWith (parent : File , relPath : String ) = (io.File (parent) / relPath).toCanonical
78
+ def prefixFile (relPath : String ) = (testParent / relPath).toCanonical
79
79
80
80
if (! testClasses.isEmpty) {
81
- testClassesDir = Path (testClasses.get).normalize .toDirectory
81
+ testClassesDir = Path (testClasses.get).toCanonical .toDirectory
82
82
NestUI .verbose(" Running with classes in " + testClassesDir)
83
83
84
84
latestFile = testClassesDir.parent / " bin"
Original file line number Diff line number Diff line change @@ -211,10 +211,13 @@ class ConsoleRunner extends DirectRunner {
211
211
* @return (success count, failure count)
212
212
*/
213
213
def testCheckAll (enabledSets : List [TestSet ]): (Int , Int ) = {
214
- def kindOf (f : File ) = (srcDir relativize Path (f).normalize ).segments.head
214
+ def kindOf (f : File ) = (srcDir relativize Path (f).toCanonical ).segments.head
215
215
216
216
val (valid, invalid) = testFiles partition (x => testSetKinds contains kindOf(x))
217
- invalid foreach (x => NestUI .failure(" Invalid test file '%s', skipping.\n " format x))
217
+ invalid foreach (x => NestUI .failure(
218
+ " Invalid test file '%s', skipping.\n " .format(x) +
219
+ " (Test kind '%s' not in known set '%s')" .format(kindOf(x), testSetKinds))
220
+ )
218
221
219
222
val grouped = (valid groupBy kindOf).toList sortBy (x => testSetKinds indexOf x._1)
220
223
val runTestsFileLists =
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ object PathSettings {
25
25
}
26
26
27
27
// Directory <root>/test/files
28
- lazy val srcDir = Directory (testRoot / srcDirName normalize )
28
+ lazy val srcDir = Directory (testRoot / srcDirName toCanonical )
29
29
30
30
// Directory <root>/test/files/lib
31
31
lazy val srcLibDir = Directory (srcDir / " lib" )
You can’t perform that action at this time.
0 commit comments