Slava Andrianov | 192ee17 | 2025-06-11 15:40:43 -0500 | [diff] [blame^] | 1 | # |
| 2 | # Copyright (c) 2025 Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | # Expect script for monitoring the results of the TFA event log hash |
| 7 | # verification script |
| 8 | # |
| 9 | |
| 10 | set mismatched_marker "Mismatched" |
| 11 | set missing_marker "not found" |
| 12 | |
| 13 | set compare_hash_path $env(ci_root) |
| 14 | append compare_hash_path "/script/verify_hashes.py" |
| 15 | |
| 16 | set hash_verification_output [exec python3 $compare_hash_path 2>@1] |
| 17 | puts $hash_verification_output |
| 18 | if {[regexp $mismatched_marker|$missing_marker $hash_verification_output]} { |
| 19 | message "Hash mismatch or missing hash detected" |
| 20 | exit_uart -1 |
| 21 | } |