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
This commit is contained in:
extempore 2011-07-13 06:58:25 +00:00
parent e9922dcc52
commit 5d8be99078
1 changed files with 4 additions and 1 deletions

View File

@ -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()