From d67c39545674832431804d63575c21fb8d6e69e4 Mon Sep 17 00:00:00 2001 From: James Le Cuirot Date: Fri, 4 Oct 2024 17:39:14 +0100 Subject: [PATCH] ci-automation: Include --qemu-ovmf-vars in qemu_update test for arm64 Kola's logic for choosing BIOS vs EFI isn't too smart, and not specifying --qemu-ovmf-vars leads to it passing -bios to QEMU. This doesn't make sense for arm64, but it did work anyway with the old firmware in raw format. The new firmware in QCOW2 format doesn't work this way. Signed-off-by: James Le Cuirot --- ci-automation/vendor-testing/qemu_update.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ci-automation/vendor-testing/qemu_update.sh b/ci-automation/vendor-testing/qemu_update.sh index d05ee2a9e2..68d7d565c9 100755 --- a/ci-automation/vendor-testing/qemu_update.sh +++ b/ci-automation/vendor-testing/qemu_update.sh @@ -71,12 +71,19 @@ fi bios="${QEMU_FIRMWARE}" if [ "${CIA_ARCH}" = "arm64" ]; then bios="${QEMU_UEFI_FIRMWARE}" + ovmf_vars="${QEMU_UEFI_OVMF_VARS}" if [ -f "${bios}" ] ; then echo "++++ qemu_update.sh: Using existing ./${bios} ++++" else echo "++++ qemu_update.sh: downloading ${bios} for ${CIA_VERNUM} (${CIA_ARCH}) ++++" copy_from_buildcache "images/${CIA_ARCH}/${CIA_VERNUM}/${bios}" . fi + if [ -f "${ovmf_vars}" ] ; then + echo "++++ ${CIA_TESTSCRIPT}: Using existing ${ovmf_vars} ++++" + else + echo "++++ ${CIA_TESTSCRIPT}: downloading ${ovmf_vars} for ${CIA_VERNUM} (${CIA_ARCH}) ++++" + copy_from_buildcache "images/${CIA_ARCH}/${CIA_VERNUM}/${ovmf_vars}" . + fi fi query_kola_tests() { @@ -118,6 +125,7 @@ run_kola_tests() { --qemu-image="${image}" \ --tapfile="${instance_tapfile}" \ --update-payload="${QEMU_UPDATE_PAYLOAD}" \ + "${ovmf_vars:+--qemu-ovmf-vars=${ovmf_vars}}" \ ${QEMU_KOLA_SKIP_MANGLE:+--qemu-skip-mangle} \ "${tests[@]}" }