]> git.sur5r.net Git - u-boot/commitdiff
tests: Make test_log.py tests depend on cmd_log not log
authorTom Rini <trini@konsulko.com>
Fri, 25 May 2018 12:28:45 +0000 (08:28 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 31 May 2018 12:53:11 +0000 (08:53 -0400)
While the tests in this testcase are for the log subsystem they are only
able to be run if CONFIG_CMD_LOG is enabled as well as CONFIG_LOG, so
update the buildconfigspec requirement.

Signed-off-by: Tom Rini <trini@konsulko.com>
test/py/tests/test_log.py

index d1c2a36d8f2541dc01e4c18e7271d9213b8fba5c..605275b03992d2ad732fbb892b892cf581e5bcb4 100644 (file)
@@ -12,7 +12,7 @@ import pytest
 
 LOGL_FIRST, LOGL_WARNING, LOGL_INFO = (0, 4, 6)
 
-@pytest.mark.buildconfigspec('log')
+@pytest.mark.buildconfigspec('cmd_log')
 def test_log(u_boot_console):
     """Test that U-Boot logging works correctly."""
     def check_log_entries(lines, mask, max_level=LOGL_INFO):
@@ -98,7 +98,7 @@ def test_log(u_boot_console):
     test8()
     test9()
 
-@pytest.mark.buildconfigspec('log')
+@pytest.mark.buildconfigspec('cmd_log')
 def test_log_format(u_boot_console):
     """Test the 'log format' and 'log rec' commands"""
     def run_with_format(fmt, expected_output):