Skip to content
Snippets Groups Projects
Commit d815e6b2 authored by amete's avatar amete
Browse files

Match the style in exclusion list parsing

parent fe235292
No related branches found
No related tags found
1 merge request!37198PyUtils: Delay regex matching to capture static variables
...@@ -330,7 +330,7 @@ def RunFrozenTier0PolicyTest(q,inputFormat,maxEvents,CleanRunHeadDir,UniqID,Diff ...@@ -330,7 +330,7 @@ def RunFrozenTier0PolicyTest(q,inputFormat,maxEvents,CleanRunHeadDir,UniqID,Diff
exclusion_list = [] exclusion_list = []
with open(diff_rules_file) as f: with open(diff_rules_file) as f:
for line in f: for line in f:
exclusion_list.append('"'+line.rstrip()+'"') exclusion_list.append(r"'{}'".format(line.rstrip()))
else: else:
logging.info("No diff rules file exists, using the default list") logging.info("No diff rules file exists, using the default list")
exclusion_list = [r"'index_ref'", r"'(.*)_timings\.(.*)'", r"'(.*)_mems\.(.*)'"] exclusion_list = [r"'index_ref'", r"'(.*)_timings\.(.*)'", r"'(.*)_mems\.(.*)'"]
......
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