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:
parent
e9922dcc52
commit
5d8be99078
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue