Skip to content
Snippets Groups Projects
Commit d927c111 authored by Teng Jian Khoo's avatar Teng Jian Khoo
Browse files

Correct FPE tracing logic

parent 38815ca7
No related branches found
No related tags found
1 merge request!72091Fix FPE scanning and undefined variable in check_log.py script
......@@ -71,7 +71,7 @@ fpeTracebackCont = [
' included from : ',
' in library : ',
]
regexMap['backtrace'].extend(fpeTracebackStart)
regexMap['fpe'].extend(fpeTracebackStart)
# Warning keywords
regexMap['warning'] = ['WARNING ']
......@@ -146,7 +146,7 @@ def scanLogfile(args, logfile, ignorePattern=[]):
if args.warnings is True:
categories += ['warning']
if args.errors is True:
categories += ['error/fatal', 'prohibited', 'python error', 'backtrace']
categories += ['error/fatal', 'prohibited', 'python error', 'fpe', 'backtrace']
igLevels = re.compile('|'.join(ignorePattern))
......@@ -175,7 +175,7 @@ def scanLogfile(args, logfile, ignorePattern=[]):
resultsA['backtrace'].append(line)
elif fpeTracing:
# Continue following FPE so long as recognised
if fpeContPattern.search(line):
if fpeStartPattern.search(line) or fpeContPattern.search(line):
resultsA['fpe'].append(line)
else:
fpeTracing = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment