expect-post/spm-uart2.exp: Conversion of the corresponding expect/ script
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ib1b317403237098f68ca9fea43a2f5e2c5293e0e
diff --git a/expect-post/spm-uart2.exp b/expect-post/spm-uart2.exp
new file mode 100755
index 0000000..1a657c3
--- /dev/null
+++ b/expect-post/spm-uart2.exp
@@ -0,0 +1,21 @@
+#!/usr/bin/env python3
+#
+# Copyright (c) 2021, Linaro Limited
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+import sys
+
+
+found = False
+
+with open(sys.argv[1]) as f:
+ for l in f:
+ if "Booting Secure Partition" in l:
+ found = True
+
+if found:
+ sys.exit(0)
+else:
+ sys.exit(1)