Gabe Black has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/12597

Change subject: systemc: Teach verify.py to filter messages which start within a line.
......................................................................

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
---
M src/systemc/tests/verify.py
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index 24a27af..19cca05 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -192,7 +192,7 @@
             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):

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12597
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I40372dc33049df84f3111e4d63a6619db97dcaa3
Gerrit-Change-Number: 12597
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to