From 8aca5c2f402aa7b06cb658dbdd7a4e86cbb9d000 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 16 Dec 2019 11:50:38 +0100 Subject: [PATCH] tests/shell: wait for prompt at beginning Previously, the test would start sending the first test commands right at the beginning. This fails on boards whose UART is not ready at that point. This PR makes the test script explicitly wait for the prompt to be ready. --- tests/shell/tests/01-run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/shell/tests/01-run.py b/tests/shell/tests/01-run.py index 1afd19533e..a93cc23d63 100755 --- a/tests/shell/tests/01-run.py +++ b/tests/shell/tests/01-run.py @@ -40,6 +40,7 @@ CONTROL_C = DLE+'\x03' CONTROL_D = DLE+'\x04' CMDS = ( + (CONTROL_C, ('>')), ('start_test', ('[TEST_START]')), ('end_test', ('[TEST_END]')), ('\n', ('>')),