Skip to content

Commit

Permalink
Skip negative cpuid test when on SNP hardware
Browse files Browse the repository at this point in the history
The hardware quote provider doesn't allow for cpuid and certificate
override, so skip this test when not simulating.
  • Loading branch information
deeglaze committed Feb 29, 2024
1 parent 9ce0c8f commit 177dfca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions verify/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,10 @@ func TestGetQuoteProviderVerify(t *testing.T) {
}

func TestGetQuoteProviderVerifyProductNameSteppingMismatch(t *testing.T) {
if !sg.UseDefaultSevGuest() {
t.Skip("Cannot override true cpuid in hardware for negative testing")
return
}
trust.ClearProductCertCache()
tests := test.TestCases()
signerMilan0, err := test.DefaultTestOnlyCertChain("Milan-B0", time.Now())
Expand Down

0 comments on commit 177dfca

Please sign in to comment.