Add infrastructure for arm_fpga platform into CI.
This patch adds all the scripts needed for CI to be able to
configure and run tests on the arm_fpga platform.
No run configurations are provided in this patch.
Change-Id: Id371794d1691b9f10d6bbf28bcfd11f9f5ea54e2
Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
diff --git a/expect/handle-arguments-remote.inc b/expect/handle-arguments-remote.inc
new file mode 100644
index 0000000..47c25c1
--- /dev/null
+++ b/expect/handle-arguments-remote.inc
@@ -0,0 +1,18 @@
+#
+# Copyright (c) 2020, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+# Script to handle the arguments and initialise the expect session.
+#
+# This script is not standalone and should be sourced by a top expect script.
+
+source [file join [file dirname [info script]] utils.inc]
+
+# Store environment variables into local variables
+set uart_port [get_param uart_port]
+set remote_host [get_param remote_host]
+set timeout [get_param timeout]
+
+# Open a telnet connection on the required UART host port
+set telnet_pid [spawn telnet $remote_host $uart_port]