Skip to content

Commit

Permalink
dasharo-security/tpm2-commands.robot: Add more skip conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Czapla <[email protected]>
  • Loading branch information
SebastianCzapla committed Jan 27, 2025
1 parent da4301f commit 2a074ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dasharo-security/measured-boot.robot
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Library RequestsLibrary
# stuff in all test cases
Resource ../variables.robot
Resource ../keywords.robot
Resource ../keys.robot
Resource ../lib/tpm.robot
Resource ../keys.robot

# TODO:
# - document which setup/teardown keywords to use and what are they doing
Expand Down Expand Up @@ -301,8 +301,10 @@ Measured Boot Suite Setup
Prepare Test Suite
Skip If not ${MEASURED_BOOT_SUPPORT} Measured boot is not supported
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} Tests in Ubuntu are not supported
Skip If '${TPM_EXPECTED_VERSION}' == '0' TPM Version in platform config does not support this suite
Power On
Boot Ubuntu And Login To Root
Verify Presence Of TPM Via Sysfs
Detect Or Install Package tpm2-tools
# Disable service that adds dbx certificates which could interfere with tests
Execute Command In Terminal systemctl disable secureboot-db.service
3 changes: 3 additions & 0 deletions dasharo-security/tpm2-commands.robot
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Library RequestsLibrary
# stuff in all test cases
Resource ../variables.robot
Resource ../keywords.robot
Resource ../lib/tpm.robot
Resource ../keys.robot

# TODO:
Expand Down Expand Up @@ -264,9 +265,11 @@ TPM2 Suite Setup
Prepare Test Suite
Skip If not ${TPM_SUPPORT} TPM tests not supported
Skip If not ${TESTS_IN_UBUNTU_SUPPORT} TPM commands tests supported only on Ubuntu
Skip If '${TPM_EXPECTED_VERSION}' != '2' TPM Version in platform config does not support this suite
Power On
Boot System Or From Connected Disk ubuntu
Login To Linux
Verify Presence Of TPM Via Sysfs
Switch To Root User
Detect Or Install Package tpm2-tools
${passed}= Run Keyword And Return Status
Expand Down

0 comments on commit 2a074ad

Please sign in to comment.