1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

examples/suit_update: extend test with suit shell command

This commit is contained in:
Alexandre Abadie 2020-12-31 15:30:27 +01:00
parent b277a6bad5
commit f5816b0c07
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -184,12 +184,20 @@ def _test_successful_update(child, client, app_ver):
client = get_reachable_addr(child)
def _test_suit_command_is_there(child):
child.sendline('suit')
child.expect_exact("Usage: suit <manifest url>")
def testfunc(child):
# Get current app_ver
current_app_ver = app_version(child)
# Verify client is reachable and get address
client = get_reachable_addr(child)
# Verify the suit shell command is there
_test_suit_command_is_there(child)
def run(func):
if child.logfile == sys.stdout:
func(child, client, current_app_ver)