Increased robustness of reporting errors and warnings with any capitalization

This commit is contained in:
David Harris 2024-09-22 19:24:47 -07:00
parent 95775f2e06
commit 5d1ff604bf

View File

@ -325,9 +325,9 @@ def addLockstepTestsByDir(dir, config, sim, fcovMode):
def search_log_for_text(text, grepfile):
"""Search through the given log file for text, returning True if it is found or False if it is not"""
grepwarn = "grep -H Warning: " + grepfile
grepwarn = "grep -i -H Warning: " + grepfile
os.system(grepwarn)
greperr = "grep -H Error: " + grepfile
greperr = "grep -i -H Error: " + grepfile
os.system(greperr)
grepcmd = "grep -a -e '%s' '%s' > /dev/null" % (text, grepfile)
# print(" search_log_for_text invoking %s" % grepcmd)