tests: add interactive_sync adapted to shell

This commit is contained in:
Francisco Molina
2020-03-17 17:23:27 +01:00
parent d57c39f09f
commit a31003a23c
6 changed files with 55 additions and 14 deletions
+8 -3
View File
@@ -99,9 +99,14 @@ def sync_child(child, env):
# Do a child synchronization if used by a module
modules = modules_list()
if 'test_utils_interactive_sync' in modules:
utils.test_utils_interactive_sync(child,
TEST_INTERACTIVE_RETRIES,
TEST_INTERACTIVE_DELAY)
if 'test_utils_interactive_sync_shell' in modules:
utils.test_utils_interactive_sync_shell(child,
TEST_INTERACTIVE_RETRIES,
TEST_INTERACTIVE_DELAY)
else:
utils.test_utils_interactive_sync(child,
TEST_INTERACTIVE_RETRIES,
TEST_INTERACTIVE_DELAY)
# If requested also reset after opening the terminal, this should not be used
# by any application since it breaks the tests for boards that do not support
# this feature.