From 8a39209514d605d67f486db874423447255a2ab2 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 5 Sep 2018 17:35:15 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/tests/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/systemc') 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): -- cgit v1.2.3