mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
test/py: fix CONFIG_ tests
Some CONFIG_ variables were recently renamed, but test/py wasn't updated to match. This causes some tests to be skipped. Fix test/py so the tests are run. Fixes:1163625898
("Rename reset to sysreset") Fixes:f1f9d4fac5
("hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER") Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
eb9d3ca356
commit
a82642f398
2 changed files with 5 additions and 5 deletions
|
@ -109,27 +109,27 @@ def exec_hush_if(u_boot_console, expr, result):
|
|||
response = u_boot_console.run_command(cmd)
|
||||
assert response.strip() == str(result).lower()
|
||||
|
||||
@pytest.mark.buildconfigspec('sys_hush_parser')
|
||||
@pytest.mark.buildconfigspec('hush_parser')
|
||||
def test_hush_if_test_setup(u_boot_console):
|
||||
"""Set up environment variables used during the "if" tests."""
|
||||
|
||||
u_boot_console.run_command('setenv ut_var_nonexistent')
|
||||
u_boot_console.run_command('setenv ut_var_exists 1')
|
||||
|
||||
@pytest.mark.buildconfigspec('sys_hush_parser')
|
||||
@pytest.mark.buildconfigspec('hush_parser')
|
||||
@pytest.mark.parametrize('expr,result', subtests)
|
||||
def test_hush_if_test(u_boot_console, expr, result):
|
||||
"""Test a single "if test" condition."""
|
||||
|
||||
exec_hush_if(u_boot_console, expr, result)
|
||||
|
||||
@pytest.mark.buildconfigspec('sys_hush_parser')
|
||||
@pytest.mark.buildconfigspec('hush_parser')
|
||||
def test_hush_if_test_teardown(u_boot_console):
|
||||
"""Clean up environment variables used during the "if" tests."""
|
||||
|
||||
u_boot_console.run_command('setenv ut_var_exists')
|
||||
|
||||
@pytest.mark.buildconfigspec('sys_hush_parser')
|
||||
@pytest.mark.buildconfigspec('hush_parser')
|
||||
# We might test this on real filesystems via UMS, DFU, 'save', etc.
|
||||
# Of those, only UMS currently allows file removal though.
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
|
|
|
@ -7,7 +7,7 @@ import pytest
|
|||
import signal
|
||||
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
@pytest.mark.buildconfigspec('reset')
|
||||
@pytest.mark.buildconfigspec('sysreset')
|
||||
def test_reset(u_boot_console):
|
||||
"""Test that the "reset" command exits sandbox process."""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue