Revert "Clean up exception handling in TestON core"
It looks like the test may hang sometimes after it has completed
This reverts commit 1de6c19da7b6265009f1b3401276dee99ed6cac3.
Change-Id: I475f52ae7b72f747af5a5fbd4440fc74f48e4c9e
diff --git a/TestON/core/testparser.py b/TestON/core/testparser.py
index aab4388..24b1ca2 100644
--- a/TestON/core/testparser.py
+++ b/TestON/core/testparser.py
@@ -46,7 +46,7 @@
try :
while not re.match('^\s*(\'\'\')|^\s*(\"\"\")',testFileList[index],0) :
index = index + 1
- except IndexError:
+ except IndexError,e:
print ''
# skip empty lines and single line comments
@@ -58,9 +58,11 @@
index = 0
statementsList = self.statementsList
while index < len(statementsList):
+ #print statementsList[index]
m= re.match('def\s+CASE(\d+)',statementsList[index],0)
self.caseBlock = []
if m:
+ #print m.group(1)
index = index + 1
try :
while not re.match('\s*def\s+CASE(\d+)',statementsList[index],0) :
@@ -70,9 +72,11 @@
else :
break
index = index - 1
- except IndexError:
+ except IndexError,e:
+ #print 'IndexError'
print ''
self.caseCode [str(m.group(1))] = self.caseBlock
+ #print "Case CODE "+self.caseCode [str(m.group(1))]
index = index + 1
return self.caseCode
@@ -104,7 +108,8 @@
else :
break
index = index - 1
- except IndexError:
+ except IndexError,e:
+ #print 'IndexError'
print ''
stepCode[step] = stepBlock
step = step + 1