mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Avoid repeatedly downloading files from GitHub
Running one or two tests in a tight loop can cause the download functions to quickly hit GitHub's API rate limit. That causes the test script to fail for no apparent reason. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -20,9 +20,13 @@ fi
|
||||
|
||||
cp scripts/sha1sums-x86_64 "$WORKLOADS_DIR"
|
||||
|
||||
download_hypervisor_fw
|
||||
if [ ! -f "$WORKLOADS_DIR/hypervisor-fw" ]; then
|
||||
download_hypervisor_fw
|
||||
fi
|
||||
|
||||
download_ovmf
|
||||
if [ ! -f "$WORKLOADS_DIR/CLOUDHV.fd" ]; then
|
||||
download_ovmf
|
||||
fi
|
||||
|
||||
FOCAL_OS_IMAGE_NAME="focal-server-cloudimg-amd64-custom-20210609-0.qcow2"
|
||||
FOCAL_OS_IMAGE_URL="https://ch-images.azureedge.net/$FOCAL_OS_IMAGE_NAME"
|
||||
|
||||
Reference in New Issue
Block a user