blob: 0a9168de758214f1d455f703c705a1fa32891260 [file] [log] [blame]
Paul Sokolovsky18fcb2c2021-12-16 22:17:13 +03001#!/usr/bin/env python3
2#
3# Copyright (c) 2021, Linaro Limited
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7# Expect script for Standalone MM partition UART2
8#
9
10import sys
11
12
13def expect(f, what):
14 for l in f:
15 if what in l:
16 return True
17 assert False, "'%s' not found in output" % what
18
19
20with open(sys.argv[1]) as f:
21 expect(f, "SPM Version")
22 expect(f, "MmMain Done!")
23 expect(f, "Received event - 0xC4000041 on cpu")
24 expect(f, "MmEntryPoint Done")