summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
authorJosh Suereth <joshua.suereth@gmail.com>2012-09-01 10:00:48 -0400
committerJosh Suereth <joshua.suereth@gmail.com>2012-09-05 21:14:59 -0400
commite26104db07769ca17fc33cc53a151f22d4298ce3 (patch)
treed17457c33328c4b8238c8ed03195e23edb51f66d /src/partest
parentadf2d3632b07eef4fc2303aef994e66584a73f49 (diff)
downloadscala-e26104db07769ca17fc33cc53a151f22d4298ce3.tar.gz
scala-e26104db07769ca17fc33cc53a151f22d4298ce3.tar.bz2
scala-e26104db07769ca17fc33cc53a151f22d4298ce3.zip
Sort files to see if we get reproducible testing results across linux/mac
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/nest/RunnerManager.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/partest/scala/tools/partest/nest/RunnerManager.scala b/src/partest/scala/tools/partest/nest/RunnerManager.scala
index 20d61d0831..376e0e9bdb 100644
--- a/src/partest/scala/tools/partest/nest/RunnerManager.scala
+++ b/src/partest/scala/tools/partest/nest/RunnerManager.scala
@@ -312,8 +312,8 @@ class RunnerManager(kind: String, val fileManager: FileManager, params: TestRunP
val testFiles = dir.listFiles.toList filter isJavaOrScala
def isInGroup(f: File, num: Int) = SFile(f).stripExtension endsWith ("_" + num)
- val groups = (0 to 9).toList map (num => testFiles filter (f => isInGroup(f, num)))
- val noGroupSuffix = testFiles filterNot (groups.flatten contains)
+ val groups = (0 to 9).toList map (num => (testFiles filter (f => isInGroup(f, num))).sorted)
+ val noGroupSuffix = (testFiles filterNot (groups.flatten contains)).sorted
noGroupSuffix :: groups filterNot (_.isEmpty)
}