Merge pull request #5255 from eatkins/scripted-exceptions

Don't print stack trace for pending tests
This commit is contained in:
Ethan Atkins 2019-11-30 18:10:45 -08:00 committed by GitHub
commit 9e02d31fcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -417,7 +417,7 @@ final class ScriptedTests(
if (t.isInstanceOf[TestException]) {
t.getCause match {
case null | _: SocketException => log.error(s" Cause of test exception: ${t.getMessage}")
case _ => t.printStackTrace()
case _ => if (!pending) t.printStackTrace()
}
log.play()
}