blob: 91f91872f94aba4552d20e22e5ab8dec88e8ae2e [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
2# Copyright (c) 2019, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
Fathi Boudra422bf772019-12-02 11:10:16 +02006# Expect script
7#
8
9source [file join [file dirname [info script]] handle-arguments.inc]
10
11# If we exit from the uart, and if that had lots of prints, then the model
12# will stall. This may also occur even when the uart does not have any print.
13# See: https://jira.arm.com/browse/SDDKW-43675. So, we wait here expect for
14# something that never arrives.
15set timeout -1
16puts "<<holding terminal>>"
17expect {
18 "FOOBAR" {
19 exit_uart -1
20 }
21}