Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame^] | 1 | # |
| 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 | |
| 11 | source [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. |
| 17 | set timeout -1 |
| 18 | puts "<<holding terminal>>" |
| 19 | expect { |
| 20 | "FOOBAR" { |
| 21 | exit_uart -1 |
| 22 | } |
| 23 | } |