blob: 4e9c358d5b4343187ec6670943de2ba548e8551f [file] [log] [blame]
Slava Andrianov192ee172025-06-11 15:40:43 -05001#
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
10set mismatched_marker "Mismatched"
11set missing_marker "not found"
12
13set compare_hash_path $env(ci_root)
14append compare_hash_path "/script/verify_hashes.py"
15
16set hash_verification_output [exec python3 $compare_hash_path 2>@1]
17puts $hash_verification_output
18if {[regexp $mismatched_marker|$missing_marker $hash_verification_output]} {
19 message "Hash mismatch or missing hash detected"
20 exit_uart -1
21}