blob: 47c25c1fa9072232fe0eb61130be5442823c61f1 [file] [log] [blame]
Javier Almansa Sobrino412d3612020-05-22 17:53:12 +01001#
2# Copyright (c) 2020, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
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
10source [file join [file dirname [info script]] utils.inc]
11
12# Store environment variables into local variables
13set uart_port [get_param uart_port]
14set remote_host [get_param remote_host]
15set timeout [get_param timeout]
16
17# Open a telnet connection on the required UART host port
18set telnet_pid [spawn telnet $remote_host $uart_port]