Re: [U-Boot] [PATCH] test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC

2016-10-14 Thread Tom Rini
On Fri, Oct 14, 2016 at 07:13:01PM -0400, Tom Rini wrote:

> We can only run this command if the sleep command is enabled and that
> depends on CONFIG_CMD_MISC
> 
> Signed-off-by: Tom Rini 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC

2016-10-14 Thread Tom Rini
We can only run this command if the sleep command is enabled and that
depends on CONFIG_CMD_MISC

Signed-off-by: Tom Rini 
---
 test/py/tests/test_sleep.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/py/tests/test_sleep.py b/test/py/tests/test_sleep.py
index 5c1a2623fefa..b59a4cfc0fc2 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()
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot