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 | # Script to handle the arguments and initialise the expect session. |
| 9 | # |
| 10 | # This script is not standalone and should be sourced by a top expect script. |
| 11 | |
| 12 | source [file join [file dirname [info script]] utils.inc] |
| 13 | |
| 14 | # Store environment variables into local variables |
| 15 | set uart_port [get_param uart_port] |
| 16 | set timeout [get_param timeout] |
| 17 | |
| 18 | # Open a telnet connection on the required UART port |
| 19 | set telnet_pid [spawn telnet localhost $uart_port] |