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:
parent
b277a6bad5
commit
f5816b0c07
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user