From 5d8be99078e16cd7de872e0f842586e92d7090f4 Mon Sep 17 00:00:00 2001 From: extempore Date: Wed, 13 Jul 2011 06:58:25 +0000 Subject: [PATCH] Restored partest behavior of keeping output directories when run with debugging enabled. No review. git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25278 5e8d7ff9-d8ef-0310-90f0-a4852d11357a --- src/partest/scala/tools/partest/nest/Worker.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala index fc4f7c5d7..e49f175b5 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()