Skip to content

Commit

Permalink
Merge Pull Request #2351 from jmlapre/sst-elements/2350-testsuite_def…
Browse files Browse the repository at this point in the history
…ault_memhierarchy_memha-convert-re-to-raw-string

Automatically Merged using SST Pull Request AutoTester
PR Title: b'memHierarchy_memHA: convert RE to raw string'
PR Author: jmlapre
  • Loading branch information
sst-autotester committed May 9, 2024
2 parents d900a0c + dcb7deb commit 964ee7e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from sst_unittest import *
from sst_unittest_support import *
import os.path
import re

################################################################################
# Code to support a single instance module initialize, must be called setUp method
Expand Down Expand Up @@ -283,7 +284,7 @@ def _remove_lines_cleanup_file(self, remove_strs, in_file, out_file = None):
# Currently handles console output format only and integer statistic formats
# Stats are parsed into [component_name, stat_name, sum, sumSQ, count, min, max]
def _is_stat(self, line):
cons_accum = re.compile(' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = (\d+); SumSQ.\w+ = (\d+); Count.\w+ = (\d+); Min.\w+ = (\d+); Max.\w+ = (\d+);')
cons_accum = re.compile(r' ([\w.]+)\.(\w+) : Accumulator : Sum.(\w+) = (\d+); SumSQ.\w+ = (\d+); Count.\w+ = (\d+); Min.\w+ = (\d+); Max.\w+ = (\d+);')
m = cons_accum.match(line)
if m == None:
return None
Expand Down

0 comments on commit 964ee7e

Please sign in to comment.