forked from OERV-BSP/u-boot
test: add test for dropped trace before log_init
Add test for dropped trace before log_init, displayed by debug uart. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
dd500134a4
commit
a4918b2310
@@ -36,3 +36,14 @@ def test_log_format(u_boot_console):
|
||||
run_with_format('FLfm', 'file.c:123-func() msg')
|
||||
run_with_format('lm', 'NOTICE. msg')
|
||||
run_with_format('m', 'msg')
|
||||
|
||||
@pytest.mark.buildconfigspec('debug_uart')
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
def test_log_dropped(u_boot_console):
|
||||
"""Test dropped 'log' message when debug_uart is activated"""
|
||||
|
||||
cons = u_boot_console
|
||||
cons.restart_uboot()
|
||||
output = cons.get_spawn_output().replace('\r', '')
|
||||
assert 'sandbox: starting...' in output
|
||||
assert (not 'debug: main' in output)
|
||||
|
||||
Reference in New Issue
Block a user