From 146c3f4442f48d634297487b7f215c0d42e30f36 Mon Sep 17 00:00:00 2001 From: Erik Larsson Date: Sat, 24 Aug 2024 10:14:55 +0200 Subject: [PATCH] test: update accepted TPM2_PT_REVISION values A update to libtpms changed the revision value, so accept the new value. Signed-off-by: Erik Larsson --- test/test_encoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_encoding.py b/test/test_encoding.py index 3728d46c..b3853818 100644 --- a/test/test_encoding.py +++ b/test/test_encoding.py @@ -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())