[PATCH V5 2/4] test/py: Avoid stopping the test on console output "## Error: "

Christoph Niedermaier cniedermaier at dh-electronics.com
Fri Jul 18 19:06:00 CEST 2025


Some tests deliberately provoke an error, but if the console output is
"## Error: " pytest catches it as an error and cancels the test.
Remove this to enable this type of tests.

Signed-off-by: Christoph Niedermaier <cniedermaier at dh-electronics.com>
---
Cc: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Cc: Casey Connolly <casey.connolly at linaro.org>
Cc: Christian Marangi <ansuelsmth at gmail.com>
Cc: Heinrich Schuchardt <xypron.glpk at gmx.de>
Cc: Ilias Apalodimas <ilias.apalodimas at linaro.org>
Cc: Jerome Forissier <jerome.forissier at linaro.org>
Cc: Joe Hershberger <joe.hershberger at ni.com>
Cc: Marek Vasut <marex at denx.de>
Cc: Mattijs Korpershoek <mkorpershoek at kernel.org>
Cc: Michael Walle <mwalle at kernel.org>
Cc: Michal Simek <michal.simek at amd.com>
Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
Cc: Quentin Schulz <quentin.schulz at cherry.de>
Cc: Rasmus Villemoes <ravi at prevas.dk>
Cc: Simon Glass <sjg at chromium.org>
Cc: Tom Rini <trini at konsulko.com>
Cc: Varadarajan Narayanan <quic_varada at quicinc.com>
Cc: "Vincent Stehlé" <vincent.stehle at arm.com>
Cc: Weijie Gao <weijie.gao at mediatek.com>
---
V5: - Add this patch to the series
---
 test/py/console_base.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/test/py/console_base.py b/test/py/console_base.py
index 88d444b44b8..1ac42ef83a0 100644
--- a/test/py/console_base.py
+++ b/test/py/console_base.py
@@ -21,7 +21,6 @@ pattern_u_boot_spl_signon = re.compile('(U-Boot SPL \\d{4}\\.\\d{2}[^\r\n]*\\))'
 pattern_u_boot_main_signon = re.compile('(U-Boot \\d{4}\\.\\d{2}[^\r\n]*\\))')
 pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
 pattern_unknown_command = re.compile('Unknown command \'.*\' - try \'help\'')
-pattern_error_notification = re.compile('## Error: ')
 pattern_error_please_reset = re.compile('### ERROR ### Please RESET the board ###')
 pattern_ready_prompt = re.compile('{lab ready in (.*)s: (.*)}')
 pattern_lab_mode = re.compile('{lab mode.*}')
@@ -45,7 +44,6 @@ bad_pattern_defs = (
     ('main_signon', pattern_u_boot_main_signon),
     ('stop_autoboot_prompt', pattern_stop_autoboot_prompt),
     ('unknown_command', pattern_unknown_command),
-    ('error_notification', pattern_error_notification),
     ('error_please_reset', pattern_error_please_reset),
 )
 
-- 
2.30.2



More information about the U-Boot mailing list