Skip to contentSkip to conversation

tests: Make test_log.py tests depend on cmd_log not log

PATCH In review Tom Rini 1 participant 2 messages May 25, 2018 – May 31, 2018

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 test/py/tests/test_log.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
test/py/tests/test_log.py +2 -2
index d1c2a36d8f25..605275b03992 100644
@@ -12,7 +12,7 @@ import pytest
 
 LOGL_FIRST, LOGL_WARNING, LOGL_INFO = (0, 4, 6)
 
- at pytest.mark.buildconfigspec('log')
+ at 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()
 
- at pytest.mark.buildconfigspec('log')
+ at 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):
Signature · 1 line
2.7.4
author
#1 lore raw
Quoted 5 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180531/6871e408/attachment.sig>