From 615620479e31a319b94c1cb6a57d8781ec6593ba Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Tue, 17 Jun 2025 08:19:44 +0200 Subject: [PATCH 1/2] test: disable TCG test on sandbox The TPM emulation on the sandbox is incomplete. Even basic tcg2 functionality like get_capability() fails: lib/efi_selftest/efi_selftest_tcg2.c(886): ERROR: get_manufacturer_id buffer too small failed Reviewed-by: Ilias Apalodimas Signed-off-by: Heinrich Schuchardt Reviewed-by: Javier Martinez Canillas --- test/py/tests/test_efi_selftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/py/tests/test_efi_selftest.py b/test/py/tests/test_efi_selftest.py index 12cbe5caa9b..58dac72fd40 100644 --- a/test/py/tests/test_efi_selftest.py +++ b/test/py/tests/test_efi_selftest.py @@ -179,6 +179,7 @@ def test_efi_selftest_text_input_ex(ubman): @pytest.mark.buildconfigspec('cmd_bootefi_selftest') @pytest.mark.buildconfigspec('efi_tcg2_protocol') +@pytest.mark.notbuildconfigspec('sandbox') def test_efi_selftest_tcg2(ubman): """Test the EFI_TCG2 PROTOCOL From d7aee0c5ce199190c37f422a82d1cd6095c928eb Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Tue, 17 Jun 2025 08:19:45 +0200 Subject: [PATCH 2/2] sandbox: enable CONFIG_CMD_BOOTEFI_SELFTEST by default The sandbox is used for a lot of generic development, we should run the UEFI tests there, too. Reported-by: Javier Martinez Canillas Reviewed-by: Ilias Apalodimas Signed-off-by: Heinrich Schuchardt Reviewed-by: Javier Martinez Canillas --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index ea33d07c086..7b1c334d3fc 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -213,6 +213,7 @@ config SANDBOX imply BITREVERSE select BLOBLIST imply LTO + imply CMD_BOOTEFI_SELFTEST imply CMD_DM imply CMD_EXCEPTION imply CMD_GETTIME