blob: eca232760fff93ca707beceae48578a51b961a7e [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05002# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02003#
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}