diff options
author | Tom Rini <trini@konsulko.com> | 2016-10-14 19:12:31 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-14 19:12:31 -0400 |
commit | 2b2c6e51e7d69f715a1501702fe33589afe6190d (patch) | |
tree | 9fd09c936b8cf15e8793ea4050ee04da15e813b7 /test | |
parent | 2fe1281c79cb8232cf0ca1c441db66e576a9acf4 (diff) | |
download | u-boot-2b2c6e51e7d69f715a1501702fe33589afe6190d.tar.gz u-boot-2b2c6e51e7d69f715a1501702fe33589afe6190d.tar.xz u-boot-2b2c6e51e7d69f715a1501702fe33589afe6190d.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_sleep.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/tests/test_sleep.py b/test/py/tests/test_sleep.py index 5c1a2623fe..b59a4cfc0f 100644 --- a/test/py/tests/test_sleep.py +++ b/test/py/tests/test_sleep.py @@ -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() |