aboutsummaryrefslogtreecommitdiff
path: root/test/py/tests/test_log.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-01-16 11:14:21 -0500
committerTom Rini <trini@konsulko.com>2021-01-16 11:14:21 -0500
commit14ea1b3635b4af8d9e283e3671f7ee872d50b859 (patch)
treeb8d1c05256b6f160a598656e797071081bd1f61e /test/py/tests/test_log.py
parentb0db69b4e1e1bf1109bd9d4a5185cbd4058f4a8b (diff)
parent750c543ca74a80da4b67882deb967c80fe790c3f (diff)
Merge branch '2021-01-15-assorted-improvements'
- Add MBR partition layout writing supporting, clean up code. - A large number of assorted console/iomux cleanups - A large number of board_r related cleanups. - Log enhancements
Diffstat (limited to 'test/py/tests/test_log.py')
-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)