Paul Sokolovsky | 18fcb2c | 2021-12-16 22:17:13 +0300 | [diff] [blame] | 1 | #!/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 | |
| 10 | import sys |
| 11 | |
| 12 | |
| 13 | def 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 | |
| 20 | with 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") |