diff options
Diffstat (limited to 'test/tpm_test/u2f_test.py')
-rw-r--r-- | test/tpm_test/u2f_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/tpm_test/u2f_test.py b/test/tpm_test/u2f_test.py index 97ca4a4141..a0118c7b13 100644 --- a/test/tpm_test/u2f_test.py +++ b/test/tpm_test/u2f_test.py @@ -102,9 +102,10 @@ def g2f_get_cert(tpm): ] g2f_read_cmd = bytes(g2f_read) response = tpm.command(g2f_read_cmd) - if len(response) <= 10: + if len(response) <= 16 or response.count(0) > 100: raise subcmd.TpmTestError('Unexpected G2F response: ' + utils.hex_dump(response)) + print('G2F cert len', len(response)) return response |