diff options
author | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-01-27 12:56:24 +0000 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@epfl.ch> | 2010-01-27 12:56:24 +0000 |
commit | c01d2647666af410bc190b350617676344995c0b (patch) | |
tree | 31c3c50ebf499ecb444c45f901ff74eb94a52376 /src/partest | |
parent | e12005a1077d15a85cf544dc1f0a8cc229201cad (diff) | |
download | scala-c01d2647666af410bc190b350617676344995c0b.tar.gz scala-c01d2647666af410bc190b350617676344995c0b.tar.bz2 scala-c01d2647666af410bc190b350617676344995c0b.zip |
Closes #2966. Review by milessabin.
Diffstat (limited to 'src/partest')
-rw-r--r-- | src/partest/scala/tools/partest/nest/Worker.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index c27ec7b4ad..d671eea561 100644 --- a/src/partest/scala/tools/partest/nest/Worker.scala +++ b/src/partest/scala/tools/partest/nest/Worker.scala @@ -529,7 +529,7 @@ class Worker(val fileManager: FileManager) extends Actor { if (!outDir.exists) outDir.mkdir() val testFile = new File(file, fileBase + ".test") val changesDir = new File(file, fileBase + ".changes") - if (changesDir.exists && !changesDir.isDirectory) { + if ((changesDir.exists && !changesDir.isDirectory) || !testFile.exists || !testFile.isFile) { // if changes exists then it has to be a dir succeeded = false (null, null, null, null) @@ -557,6 +557,7 @@ class Worker(val fileManager: FileManager) extends Actor { settings.outdir.value = outDir.getCanonicalFile.getAbsolutePath settings.sourcepath.value = sourcepath settings.classpath.value = fileManager.CLASSPATH + settings.Ybuildmanagerdebug.value = true // simulate Build Manager loop val prompt = "builder > " |