From c921f3f865943192f0775f7d2cdce8ae9847e6bb Mon Sep 17 00:00:00 2001 From: Alexander Nicke Date: Fri, 12 Apr 2024 08:44:08 +0200 Subject: [PATCH] feat: Add check for required files to run-local.sh (bpm, bosh-stemcells) --- acceptance-tests/run-local.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/acceptance-tests/run-local.sh b/acceptance-tests/run-local.sh index 3b0b139c..3aebe8f3 100755 --- a/acceptance-tests/run-local.sh +++ b/acceptance-tests/run-local.sh @@ -29,6 +29,23 @@ docker_mac_check_cgroupsv1() { fi } +check_required_files() { + REQUIRED_FILE_PATTERNS=( + ../ci/scripts/bpm/bpm-release-*.tgz + ../ci/scripts/stemcell/bosh-stemcell-*-ubuntu-jammy-*.tgz + ../ci/scripts/stemcell-bionic/bosh-stemcell-*-ubuntu-bionic-*.tgz + ) + + for pattern in "${REQUIRED_FILE_PATTERNS[@]}"; do + if [ ! -f "$pattern" ]; then + echo "Required file not found: {$pattern}" + exit 1 + fi + done +} + +check_required_files + if [ "$(uname)" == "Darwin" ]; then docker_mac_check_cgroupsv1 fi