From f5816b0c076c07871030745b95aa80367b8fb677 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 31 Dec 2020 15:30:27 +0100 Subject: [PATCH] examples/suit_update: extend test with suit shell command --- examples/suit_update/tests/01-run.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/suit_update/tests/01-run.py b/examples/suit_update/tests/01-run.py index b56f53d61c..24f2eb7b52 100755 --- a/examples/suit_update/tests/01-run.py +++ b/examples/suit_update/tests/01-run.py @@ -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 ") + + 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)