blob: bc40b17622eaf02414c964d649aba17a5d2f5d5b [file] [log] [blame]
#
# Copyright (c) 2020, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
source [file join [file dirname [info script]] handle-arguments.inc]
expect {
"Booting Primary Cactus Secure Partition" {
puts "<<SP entry>>"
}
timeout {
exit_uart -1
}
}
expect {
"FFA_VERSION returned 1.0" {
puts "<<SP checked FF-A version>>"
}
timeout {
exit_uart -1
}
}
# UART2 captures prints from SP0. If we exit from here, expect script will stop
# capturing the output from telnet process spawned for tracking uart2 console.
# Hence, we need to hold the uart such that the expect script captures the
# outputs to uart log. We do this by configuring timeout to never expire and
# expecting an unexpected string such as "FOOBAR". Refer uart-hold.inc
source [file join [file dirname [info script]] uart-hold.inc]