Skip to content

Commit

Permalink
preinstall: Address recommendation in review
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisccoulson committed Jan 16, 2025
1 parent 87e85f2 commit ae71107
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion efi/preinstall/check_tcglog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1034,6 +1034,7 @@ func (s *tcglogSuite) TestCheckFirmwareLogAndChoosePCRBankEmptyPCRBankAllowed(c
log = efitest.NewLog(c, &efitest.LogOptions{
Algorithms: []tpm2.HashAlgorithmId{tpm2.HashAlgorithmSHA256},
})
const permitEmptyPCRBanks = true
_, err := CheckFirmwareLogAndChoosePCRBank(s.TPM, log,
tpm2.HandleList{
internal_efi.PlatformConfigPCR,
Expand All @@ -1044,7 +1045,7 @@ func (s *tcglogSuite) TestCheckFirmwareLogAndChoosePCRBankEmptyPCRBankAllowed(c
internal_efi.PlatformManufacturerPCR,
internal_efi.SecureBootPolicyPCR,
},
true,
permitEmptyPCRBanks,
)
c.Assert(err, IsNil)
}
Expand Down

0 comments on commit ae71107

Please sign in to comment.