mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
vendor-testing/qemu_update.sh: make update payload configurable
This change makes QEMU_UPDATE_PAYLOAD configurable via ci-automation/settings.env where it was hard-wired before. The change also fixes fall-out in qemu_update.sh by ensuring a local tmp directory is created before it is used by the test. Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
This commit is contained in:
parent
bd54e3a0ce
commit
8ef820ad20
@ -68,7 +68,7 @@ QEMU_UEFI_BIOS="${QEMU_UEFI_BIOS:-flatcar_production_qemu_uefi_efi_code.fd}"
|
||||
|
||||
# Update payload for the qemu_update.sh test.
|
||||
# The default path set below is relative to TEST_WORK_DIR
|
||||
QEMU_UPDATE_PAYLOAD="tmp/flatcar_test_update.gz"
|
||||
QEMU_UPDATE_PAYLOAD="${QEMU_UPDATE_PAYLOAD:-tmp/flatcar_test_update.gz}"
|
||||
|
||||
# Devcontainer settings for isolated / local testing w/o a remote
|
||||
# devcontainer server and/or binhost.
|
||||
|
||||
@ -24,10 +24,10 @@ if [ "$*" != "" ] && [ "$*" != "*" ] && [[ "$*" != *"cl.update."* ]]; then
|
||||
fi
|
||||
|
||||
mkdir -p "$(dirname ${QEMU_UPDATE_PAYLOAD})"
|
||||
mkdir -p tmp
|
||||
if [ -f "${QEMU_UPDATE_PAYLOAD}" ] ; then
|
||||
echo "++++ ${CIA_TESTSCRIPT}: Using existing ${QEMU_UPDATE_PAYLOAD} for testing ${CIA_VERNUM} (${CIA_ARCH}) ++++"
|
||||
else
|
||||
# TODO: Change the GitHub Action to provide this artifact and detect that case here and skip the bincache download
|
||||
if ! curl --head -o /dev/null -fsSL --retry-delay 1 --retry 60 --retry-connrefused --retry-max-time 60 --connect-timeout 20 "https://bincache.flatcar-linux.net/images/${CIA_ARCH}/${CIA_VERNUM}/flatcar_test_update.gz"; then
|
||||
echo "1..1" > "${CIA_TAPFILE}"
|
||||
echo "ok - skipped qemu update tests" >> "${CIA_TAPFILE}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user