added variable to store the live test traceback if any

This commit is contained in:
Bernardo Damele 2013-01-09 12:33:18 +00:00
parent f11747732e
commit 8457cff278

View File

@ -14,6 +14,7 @@ import StringIO
import sys import sys
import tempfile import tempfile
import time import time
import traceback
from extra.beep.beep import beep from extra.beep.beep import beep
from lib.controller.controller import start from lib.controller.controller import start
@ -231,6 +232,7 @@ def runCase(switches=None, parse=None):
if exception: if exception:
logger.error("unhandled exception occurred ('%s')" % str(exception)) logger.error("unhandled exception occurred ('%s')" % str(exception))
tback = traceback.format_exc()
retVal = False retVal = False
elif result is False: # if None, ignore elif result is False: # if None, ignore
logger.error("the test did not run") logger.error("the test did not run")