mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-06 04:26:59 +02:00
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 <jlecuirot@microsoft.com>
This commit is contained in:
parent
c80760c999
commit
d67c395456
@ -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[@]}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user