Fix a bug in expect script tracking UART2 of Secure Partition

With this fix, the expect script doesnt exit soon after seeing
the script "FFA_VERSION returned 1.0" that occurs early in the
bootup of first Secure Partition(SP0).

Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
Change-Id: I4453a1b3360011039eb179f1116267b4e17901b6
diff --git a/expect/spm-uart2.exp b/expect/spm-uart2.exp
index a7bb59a..bc40b17 100644
--- a/expect/spm-uart2.exp
+++ b/expect/spm-uart2.exp
@@ -17,11 +17,17 @@
 
 expect {
 	"FFA_VERSION returned 1.0"  {
-		puts "<<SP exit>>"
+		puts "<<SP checked FF-A version>>"
 	}
 	timeout {
 		exit_uart -1
 	}
 }
 
-exit_uart 0
+# 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]