summaryrefslogtreecommitdiff
path: root/src/systemc/tests
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-05 17:35:15 -0700
committerGabe Black <gabeblack@google.com>2018-10-09 21:37:38 +0000
commit8a39209514d605d67f486db874423447255a2ab2 (patch)
tree36c8db953364c047b407f0157361491b52aa39c3 /src/systemc/tests
parent0a81eaabc462f09295aba4ba042e838fd6f04cb9 (diff)
downloadgem5-8a39209514d605d67f486db874423447255a2ab2.tar.xz
systemc: Teach verify.py to filter messages which start within a line.
It's possible for a test to generate a warning or error in the middle of a line of output. The previous filter generator function would create a filter which would only detect those messages which started at the beginning of a new line. Change-Id: I40372dc33049df84f3111e4d63a6619db97dcaa3 Reviewed-on: https://gem5-review.googlesource.com/c/12597 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/tests')
-rwxr-xr-xsrc/systemc/tests/verify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index 24a27afe1..19cca0560 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -192,7 +192,7 @@ class Checker(object):
return test_f.read() == ref_f.read()
def tagged_filt(tag, num):
- return (r'^\n{}: \({}{}\) .*\n(In file: .*\n)?'
+ return (r'\n{}: \({}{}\) .*\n(In file: .*\n)?'
r'(In process: [\w.]* @ .*\n)?').format(tag, tag[0], num)
def error_filt(num):