linux-stable/tools/testing/selftests/tpm2
Tzung-Bi Shih 787fccb321 selftests: tpm2: remove redundant ord()
When testing with FLAG_DEBUG enabled client, it emits the following
error messages:

File "/root/tpm2/tpm2.py", line 347, in hex_dump
    d = [format(ord(x), '02x') for x in d]
File "/root/tpm2/tpm2.py", line 347, in <listcomp>
    d = [format(ord(x), '02x') for x in d]
TypeError: ord() expected string of length 1, but int found

The input of hex_dump() should be packed binary data.  Remove the
ord().

Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-02-13 09:09:46 -07:00
..
Makefile selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
settings selftests/tpm2: increase timeout for kselftests 2022-06-28 13:31:10 -06:00
test_async.sh selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
test_smoke.sh selftests/tpm2: Split async tests call to separate shell script runner 2022-11-29 17:28:31 -07:00
test_space.sh selftests: tpm: upgrade TPM2 tests from Python 2 to Python 3 2020-07-06 14:20:35 -06:00
tpm2.py selftests: tpm2: remove redundant ord() 2023-02-13 09:09:46 -07:00
tpm2_tests.py selftests: tpm: add async space test with noneexisting handle 2022-03-08 10:33:17 +02:00