blob: a96fa2a61700b568b985acce6903442211cfdbd6 [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#
6
7#
8# Expect script
9#
10
11source [file join [file dirname [info script]] handle-arguments.inc]
12
13# If we exit from the uart, and if that had lots of prints, then the model
14# will stall. This may also occur even when the uart does not have any print.
15# See: https://jira.arm.com/browse/SDDKW-43675. So, we wait here expect for
16# something that never arrives.
17set timeout -1
18puts "<<holding terminal>>"
19expect {
20 "FOOBAR" {
21 exit_uart -1
22 }
23}