Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | # |
Leonardo Sandoval | 579c737 | 2020-10-23 15:23:32 -0500 | [diff] [blame] | 2 | # Copyright (c) 2019-2020 Arm Limited. All rights reserved. |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 6 | # Script to handle the arguments and initialise the expect session. |
| 7 | # |
| 8 | # This script is not standalone and should be sourced by a top expect script. |
| 9 | |
| 10 | source [file join [file dirname [info script]] utils.inc] |
| 11 | |
| 12 | # Store environment variables into local variables |
| 13 | set uart_port [get_param uart_port] |
| 14 | set timeout [get_param timeout] |
| 15 | |
| 16 | # Open a telnet connection on the required UART port |
| 17 | set telnet_pid [spawn telnet localhost $uart_port] |