From 36270467306c30e61be04f5cef86779f8604a710 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Thu, 1 Feb 2024 19:52:20 +0530 Subject: [PATCH] ci-automation: Update to include the qemu_uefi_secure test Signed-off-by: Sayan Chowdhury --- ci-automation/ci-config.env | 1 + ci-automation/vendor-testing/qemu.sh | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/ci-automation/ci-config.env b/ci-automation/ci-config.env index 6c177bb4c5..9188dc454a 100644 --- a/ci-automation/ci-config.env +++ b/ci-automation/ci-config.env @@ -66,6 +66,7 @@ QEMU_BIOS="/usr/share/qemu/bios-256k.bin" # UEFI bios filename on build cache. # Published by vms.sh as part of the qemu vendor build. QEMU_UEFI_BIOS="${QEMU_UEFI_BIOS:-flatcar_production_qemu_uefi_efi_code.fd}" +QEMU_UEFI_SECURE_BIOS="${QEMU_UEFI_SECURE_BIOS:-flatcar_production_qemu_uefi_secure_efi_code.fd}" # Update payload for the qemu_update.sh test. # The default path set below is relative to TEST_WORK_DIR diff --git a/ci-automation/vendor-testing/qemu.sh b/ci-automation/vendor-testing/qemu.sh index 7b426889e4..75c97fb855 100755 --- a/ci-automation/vendor-testing/qemu.sh +++ b/ci-automation/vendor-testing/qemu.sh @@ -34,6 +34,13 @@ fi bios="${QEMU_BIOS}" if [ "${CIA_TESTSCRIPT}" = "qemu_uefi.sh" ] ; then bios="${QEMU_UEFI_BIOS}" +fi + +if [ "${CIA_TESTSCRIPT}" = "qemu_uefi_secure.sh" ] ; then + bios="${QEMU_UEFI_SECURE_BIOS}" +fi + +if [ "${CIA_TESTSCRIPT}" = "qemu_uefi.sh" ] || [ "${CIA_TESTSCRIPT}" = "qemu_uefi_secure.sh" ] ; then if [ -f "${bios}" ] ; then echo "++++ ${CIA_TESTSCRIPT}: Using existing ${bios} ++++" else