mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
scripts: skip downloads when workloads already exist
Add file-existence guards around firmware and OVMF download calls in integration test scripts that were missing them. Also guard prepare_linux() in test-util.sh so it returns early when the kernel binary is already present. This lets users pre-populate the workloads directory (e.g. via CH_CUSTOM_KERNEL, CH_CUSTOM_FIRMWARE, CH_CUSTOM_OVMF) and avoid redundant network fetches or source builds inside the container. Updated scripts: - test-util.sh (prepare_linux early return) - run_integration_tests_aarch64.sh - run_integration_tests_vfio.sh - run_integration_tests_windows_x86_64.sh - run_integration_tests_windows_aarch64.sh Assisted-by: GitHub Copilot:Claude-Opus-4.6 Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
00bee62653
commit
c5e90a37e6
@@ -20,7 +20,9 @@ WIN_IMAGE_FILE="$WORKLOADS_DIR/$WIN_IMAGE_BASENAME"
|
||||
|
||||
# Download aarch64 OVMF
|
||||
OVMF_FW="$WORKLOADS_DIR/CLOUDHV_EFI.fd"
|
||||
download_aarch64_ovmf
|
||||
if [ ! -f "$OVMF_FW" ]; then
|
||||
download_aarch64_ovmf
|
||||
fi
|
||||
|
||||
# Check if the images are present
|
||||
if [[ ! -f ${WIN_IMAGE_FILE} || ! -f ${OVMF_FW} ]]; then
|
||||
|
||||
Reference in New Issue
Block a user