Skip to content

Commit

Permalink
feat: Add check for required files to run-local.sh
Browse files Browse the repository at this point in the history
(bpm, bosh-stemcells)
  • Loading branch information
a18e committed Apr 12, 2024
1 parent a2d313f commit c921f3f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions acceptance-tests/run-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c921f3f

Please sign in to comment.