test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC
PATCH 1/1 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 <[email protected]>
--- test/py/tests/test_sleep.py | 2 ++ 1 file changed, 2 insertions(+)
test/py/tests/test_sleep.py +2 -0
@@ -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()
Signature · 1 line
1.9.1
PATCH 1/1 test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC
Quoted 4 lines · Tom Rini
We can only run this command if the sleep command is enabled and that depends on
CONFIG_CMD_MISCSigned-off-by Tom Rini <[email protected]>
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: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161014/9a680271/attachment.sig>