confidential-containers / trustee

Attestation and Secret Delivery Components
Apache License 2.0
67 stars 88 forks source link

verifier/tdx: fix TdShimPlatformConfigInfo parse error comparation #538

Closed Xynnn007 closed 1 month ago

Xynnn007 commented 1 month ago

The original unit tests use anyhow for error handling. The results are unstable because the debug format of the anyhow error might change due to different environments. This patch replace anyhow with thiserror without changing the test aim. This would give a more robust error type defination for comparation.

cc @jodh-intel @fitzthum