mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC
We can only run this command if the sleep command is enabled and that depends on CONFIG_CMD_MISC Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
2fe1281c79
commit
2b2c6e51e7
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ def test_sleep(u_boot_console):
|
|||
"""Test the sleep command, and validate that it sleeps for approximately
|
||||
the correct amount of time."""
|
||||
|
||||
if u_boot_console.config.buildconfig.get('config_cmd_misc', 'n') != 'y':
|
||||
pytest.skip('sleep command not supported')
|
||||
# 3s isn't too long, but is enough to cross a few second boundaries.
|
||||
sleep_time = 3
|
||||
tstart = time.time()
|
||||
|
|
Loading…
Add table
Reference in a new issue