fix(expect): improve event log capture logic
Refines the capture_log procedure to use less greedy regex matching and
ensure the end marker is not missed. This resolves issues where the log
capture would terminate early or skip digest contents. Also tolerates
whitespace differences to avoid false mismatches due to formatting.
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
Co-authored-by: Chris Kay <chris.kay@arm.com>
Change-Id: Ieabccd81a0d191e817884a69327935f493df1a6a
diff --git a/expect/trusted-firmware.inc b/expect/trusted-firmware.inc
index 15c2359..f2c4e99 100644
--- a/expect/trusted-firmware.inc
+++ b/expect/trusted-firmware.inc
@@ -29,7 +29,7 @@
# Capture the event log from TF-A if we are running with measured boot
# enabled.
if {[info exists ::env(measured_boot)]} {
- capture_log tfa_event_log "BL1: Booting BL31"
+ capture_log tfa_event_log "BL1: Booting BL31|Finished using crypto library"
} else {
expect_string "BL1: Booting BL31"
}