Skip to content

Commit

Permalink
fix(test): fix auto-download method for when all files are present
Browse files Browse the repository at this point in the history
  • Loading branch information
a18e committed May 3, 2024
1 parent de6f849 commit 769f78e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions acceptance-tests/run-local.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -eu

SCRIPT_DIR="$(cd "$(dirname "$0")/" && pwd)"
REPO_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
Expand Down Expand Up @@ -30,6 +30,7 @@ docker_mac_check_cgroupsv1() {
}

check_required_files() {
PIDS=""
REQUIRED_FILE_PATTERNS=(
../ci/scripts/bpm/bpm-release-*.tgz!https://bosh.io/d/github.com/cloudfoundry/bpm-release
../ci/scripts/stemcell/bosh-stemcell-*-ubuntu-jammy-*.tgz!https://bosh.io/d/stemcells/bosh-warden-boshlite-ubuntu-jammy-go_agent
Expand Down Expand Up @@ -63,7 +64,7 @@ check_required_files() {
done
# shellcheck disable=SC2086
# expansion is desired, as $PIDS is a list of PIDs. Wait on all of those PIDs.
[ -n "$PIDS" ] && wait $PIDS
wait $PIDS
}

check_required_files
Expand Down

0 comments on commit 769f78e

Please sign in to comment.