diff options
Diffstat (limited to 'src/partest')
-rw-r--r-- | src/partest/scala/tools/partest/nest/Worker.scala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index 88ea62353e..6863a6deba 100644 --- a/src/partest/scala/tools/partest/nest/Worker.scala +++ b/src/partest/scala/tools/partest/nest/Worker.scala @@ -150,7 +150,10 @@ class Worker(val fileManager: FileManager, params: TestRunParams) extends Actor private def updateStatus(key: String, num: Int) = status(key) = num private def cleanup() { - toDelete foreach (_.deleteRecursively()) + // keep output directories under debug + if (!isPartestDebug) + toDelete foreach (_.deleteRecursively()) + toDelete.clear() } sys addShutdownHook cleanup() |