From 8457cff278bb5d50b6fbeec5a4a5505137d971c8 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Wed, 9 Jan 2013 12:33:18 +0000 Subject: [PATCH] added variable to store the live test traceback if any --- lib/core/testing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/testing.py b/lib/core/testing.py index 774febcbe..68c45693e 100644 --- a/lib/core/testing.py +++ b/lib/core/testing.py @@ -14,6 +14,7 @@ import StringIO import sys import tempfile import time +import traceback from extra.beep.beep import beep from lib.controller.controller import start @@ -231,6 +232,7 @@ def runCase(switches=None, parse=None): if exception: logger.error("unhandled exception occurred ('%s')" % str(exception)) + tback = traceback.format_exc() retVal = False elif result is False: # if None, ignore logger.error("the test did not run")