Skip to content

Commit

Permalink
cvm_attestation: Skip Intel processors
Browse files Browse the repository at this point in the history
Based on the test case description and steps, it looks like it is only designed to run on SEV-SNP, not on TDX or SGX SKUs. This matches test failure observations
  • Loading branch information
kamalca committed Nov 22, 2024
1 parent 9b1b352 commit 50b4f36
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion microsoft/testsuites/cvm/cvm_attestation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
from lisa.operating_system import Ubuntu
from lisa.sut_orchestrator import AZURE
from lisa.testsuite import TestResult, simple_requirement
from lisa.tools import Ls
from lisa.tools import Ls, Lscpu
from lisa.tools.lscpu import CpuType
from lisa.util import SkippedException, UnsupportedDistroException
from microsoft.testsuites.cvm.cvm_attestation_tool import (
AzureCVMAttestationTests,
Expand All @@ -41,6 +42,11 @@ def before_case(self, log: Logger, **kwargs: Any) -> None:
)
)

if node.tools[Lscpu].get_cpu_type() != CpuType.AMD:
raise SkippedException(
"CVM attestation report supports only SEV-SNP (AMD) CPU."
)

@TestCaseMetadata(
description="""
Runs get-snp-report tool to generate
Expand Down Expand Up @@ -86,6 +92,11 @@ def before_case(self, log: Logger, **kwargs: Any) -> None:
if not sev_guest_exists:
raise SkippedException("/dev/sev-guest: Device Not Found")

if node.tools[Lscpu].get_cpu_type() != CpuType.AMD:
raise SkippedException(
"CVM attestation report supports only SEV-SNP (AMD) CPU."
)

@TestCaseMetadata(
description="""
Runs get-snp-report tool to generate
Expand Down

0 comments on commit 50b4f36

Please sign in to comment.