]> Gentwo Git Trees - linux/.git/commit
selftests: tpm2: Fix ill defined assertions
authorMaurice Hieronymus <mhi@mailbox.org>
Sun, 23 Nov 2025 11:18:09 +0000 (12:18 +0100)
committerJarkko Sakkinen <jarkko@kernel.org>
Wed, 3 Dec 2025 20:55:27 +0000 (22:55 +0200)
commitcffc934c0d81c9dea3d63cc108e6f925a4bac18e
treee531ad9389ff51e64c56b9bb61b43c2092976c17
parenta619fe35ab41fded440d3762d4fbad84ff86a4d4
selftests: tpm2: Fix ill defined assertions

Remove parentheses around assert statements in Python. With parentheses,
assert always evaluates to True, making the checks ineffective.

Signed-off-by: Maurice Hieronymus <mhi@mailbox.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
tools/testing/selftests/tpm2/tpm2.py