summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-11-27 11:20:55 +0100
committerTom Rini <trini@konsulko.com>2021-01-15 14:36:11 -0500
commita4918b231065224092a34bf8cca5af704bb8373b (patch)
tree960b4d917e2a60cbfa4b2fdaaf1bf29971622171 /test
parentdd500134a4201f0edd8a8f6b9618ed7094b8d29e (diff)
downloadu-boot-a4918b231065224092a34bf8cca5af704bb8373b.tar.gz
u-boot-a4918b231065224092a34bf8cca5af704bb8373b.tar.xz
u-boot-a4918b231065224092a34bf8cca5af704bb8373b.zip
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>
Diffstat (limited to 'test')
-rw-r--r--test/py/tests/test_log.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/py/tests/test_log.py b/test/py/tests/test_log.py
index 387b392ce9..f889120f2b 100644
--- a/test/py/tests/test_log.py
+++ b/test/py/tests/test_log.py
@@ -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)