restyling

This commit is contained in:
Bernardo Damele 2012-12-19 13:47:17 +00:00
parent 4b3b4eb374
commit 27a12ae85b

View File

@ -209,15 +209,18 @@ def runCase(switches=None, parse=None):
ifile = open(conf.dumper.getOutputFile(), "rb")
content = ifile.read()
ifile.close()
for item in parse:
if item.startswith("r'") and item.endswith("'"):
if not re.search(item[2:-1], content, re.DOTALL):
retVal = False
failedItem = item
break
elif content.find(item) < 0:
retVal = False
failedItem = item
break
cleanCase()