mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor update of testing
This commit is contained in:
@@ -192,6 +192,15 @@ def smokeTest():
|
||||
|
||||
dirtyPatchRandom()
|
||||
|
||||
content = open(paths.ERRORS_XML, "r").read()
|
||||
for regex in re.findall(r'<error regexp="(.+?)"/>', content):
|
||||
try:
|
||||
re.compile(regex)
|
||||
except re.error:
|
||||
errMsg = "smoke test failed at compiling '%s'" % regex
|
||||
logger.error(errMsg)
|
||||
return False
|
||||
|
||||
retVal = True
|
||||
count, length = 0, 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user