Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8457cff

Browse files
committed
added variable to store the live test traceback if any
1 parent f117477 commit 8457cff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/core/testing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import sys
1515
import tempfile
1616
import time
17+
import traceback
1718

1819
from extra.beep.beep import beep
1920
from lib.controller.controller import start
@@ -231,6 +232,7 @@ def runCase(switches=None, parse=None):
231232

232233
if exception:
233234
logger.error("unhandled exception occurred ('%s')" % str(exception))
235+
tback = traceback.format_exc()
234236
retVal = False
235237
elif result is False: # if None, ignore
236238
logger.error("the test did not run")

0 commit comments

Comments
 (0)