]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: make the TPM event log checking a bit more robust
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 25 Oct 2023 15:40:05 +0000 (17:40 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 25 Oct 2023 16:18:11 +0000 (18:18 +0200)
commit45534eefe6b8b5acec09f26dd698350ed6648e4e
tree267f1af0db82c1f3cf4e7f4c29cbf88119dbd927
parent29be59555f478c9d029593ccf0a2f64b6ae5843f
test: make the TPM event log checking a bit more robust

Don't hardcode the event number, so the test works correctly even if
someone wrote to the event log before us. Also, explicitly pick the
sha256 bank when checking digests, as the indexing may vary depending on
current TPM's capabilities.
test/units/testsuite-70.pcrextend.sh