From f9d20d2a7fe07819e046526937bf2618351cfb82 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Sun, 8 Jan 2023 15:28:01 -0600 Subject: [PATCH] fpga: tools: Fix error detection in run_testbenches.py This fixes recognition of $error and $fatal statements in the output of XSim when running run_testbenches.py. XSim apparently prints a "shift in" character (0x15) as part of its error statements, so the regular expression was not matching. Original-commit: ee36d7fabcf73f773edae00fbb1604a600db992d --- tools/utils/run_testbenches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/utils/run_testbenches.py b/tools/utils/run_testbenches.py index 2480782..2a78848 100755 --- a/tools/utils/run_testbenches.py +++ b/tools/utils/run_testbenches.py @@ -157,7 +157,7 @@ def parse_output(simout): # testbench or may occur in a subsequent instance, after a pass. tb_match_error = ([ '\n', - '(Error|Fatal): .*\n', + '(Error|Fatal): .*\n.?', 'Time: .+\n', ]) m_error = re.search(''.join(tb_match_error), plain_simout)