[LTP] ima_tpm.sh: properly detect failure to verify the IMA measurement list
Andrea Cervesato
andrea.cervesato@suse.com
Thu Aug 27 08:56:15 CEST 2026
Hi Mimi,
> > + pcr_aggregate="$(cat tmp.txt | awk '{print $1}')"
>
> The cat here is redundant, awk can read the file directly:
>
This is valid.
> > + lineno="$(cat tmp.txt | awk '{print $2}')"
>
> Same here:
>
> lineno="$(awk '{print $2}' tmp.txt)"
[..]
>
> > + tst_res TPASS "aggregate PCR value matched real PCR value (line: $lineno/$total_measurements)"
>
> This line is about 100 columns wide. LTP shell style asks for lines
> under 80 characters; perhaps wrap it or shorten the message.
we can ignore this one.
@Petr can you please take a look?
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list