Skip to content

Commit

Permalink
test: update accepted TPM2_PT_REVISION values
Browse files Browse the repository at this point in the history
A update to libtpms changed the revision value, so accept the new value.

Signed-off-by: Erik Larsson <who+github@cnackers.org>
  • Loading branch information
whooo committed Aug 24, 2024
1 parent 55d28b2 commit 146c3f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def test_tools_decode_tpml_tagged_tpm_property(self):
self.assertEqual(fl[1].property, TPM2_PT.LEVEL)
self.assertEqual(fl[1].value, 0)
self.assertEqual(fl[2].property, TPM2_PT.REVISION)
self.assertEqual(fl[2].value, 0xA4)
self.assertIn(fl[2].value, (0xA4, 0xB7))

varyml = self.run_tool("getcap", "properties-variable")
vl = from_yaml(varyml, TPML_TAGGED_TPM_PROPERTY())
Expand Down

0 comments on commit 146c3f4

Please sign in to comment.