Skip to content
Snippets Groups Projects
Commit 2b2c6e51 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@konsulko.com>
parent 2fe1281c
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment