Skip to contentSkip to conversation

test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC

PATCH New Tom Rini 1 participant 2 messages Oct 14, 2016 – Oct 15, 2016

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

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

---
 test/py/tests/test_sleep.py | 2 ++
 1 file changed, 2 insertions(+)
test/py/tests/test_sleep.py +2 -0
index 5c1a2623fefa..b59a4cfc0fc2 100644
@@ -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
author
#1 lore raw

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_MISC

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>