summaryrefslogtreecommitdiffstats
path: root/tests/libptxdisttest.kermit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libptxdisttest.kermit')
-rw-r--r--tests/libptxdisttest.kermit2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libptxdisttest.kermit b/tests/libptxdisttest.kermit
index 142f20b9f..915d9ea4a 100644
--- a/tests/libptxdisttest.kermit
+++ b/tests/libptxdisttest.kermit
@@ -106,8 +106,10 @@ define ptx_uboot_enter_shell {
}
define ptx_uboot_exec {
+ # %1 = timeout value, %2 = command, %3 = extra string to wait for (optional)
ptx_lineout "\%2"
+ if not equal "\%3" "" ptx_wait_string "\%1" "\%3"
input \%1 \m(uboot_prompt)
ptx_check_fail "timeout while waiting for u-boot prompt after '\%2'"