Hide stacktrace upon failure on pending scripted test

This commit is contained in:
Martin Duhem 2016-01-25 14:48:06 +01:00
parent e73dc9b546
commit 149122ab4d
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ final class ScriptedTests(resourceBaseDirectory: File, bufferLog: Boolean, handl
testFailed() testFailed()
e.getCause match { e.getCause match {
case null | _: java.net.SocketException => buffered.error(" " + e.getMessage) case null | _: java.net.SocketException => buffered.error(" " + e.getMessage)
case _ => e.printStackTrace case _ => if (!pending) e.printStackTrace
} }
if (!pending) throw e if (!pending) throw e
case e: PendingTestSuccessException => case e: PendingTestSuccessException =>