mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
tests: Make test_log.py tests depend on cmd_log not log
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>
This commit is contained in:
parent
a903c9a04c
commit
680a52c350
1 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ import pytest
|
||||||
|
|
||||||
LOGL_FIRST, LOGL_WARNING, LOGL_INFO = (0, 4, 6)
|
LOGL_FIRST, LOGL_WARNING, LOGL_INFO = (0, 4, 6)
|
||||||
|
|
||||||
@pytest.mark.buildconfigspec('log')
|
@pytest.mark.buildconfigspec('cmd_log')
|
||||||
def test_log(u_boot_console):
|
def test_log(u_boot_console):
|
||||||
"""Test that U-Boot logging works correctly."""
|
"""Test that U-Boot logging works correctly."""
|
||||||
def check_log_entries(lines, mask, max_level=LOGL_INFO):
|
def check_log_entries(lines, mask, max_level=LOGL_INFO):
|
||||||
|
@ -98,7 +98,7 @@ def test_log(u_boot_console):
|
||||||
test8()
|
test8()
|
||||||
test9()
|
test9()
|
||||||
|
|
||||||
@pytest.mark.buildconfigspec('log')
|
@pytest.mark.buildconfigspec('cmd_log')
|
||||||
def test_log_format(u_boot_console):
|
def test_log_format(u_boot_console):
|
||||||
"""Test the 'log format' and 'log rec' commands"""
|
"""Test the 'log format' and 'log rec' commands"""
|
||||||
def run_with_format(fmt, expected_output):
|
def run_with_format(fmt, expected_output):
|
||||||
|
|
Loading…
Add table
Reference in a new issue