refactor: use event log utils in linux tpm tests

Simplifies event log parsing by replacing manual expect patterns with
capture_log, compare_log, and capture_and_compare_log utility functions.
Improves maintainability and consistency across TPM scripts.

Change-Id: I4e3ad47189f4ace1b447d28313902e6e357235bf
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
4 files changed