Skip to content

Commit

Permalink
remove -
Browse files Browse the repository at this point in the history
  • Loading branch information
TimHuynh committed Aug 19, 2024
1 parent 4a46c1a commit cf43e94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ FAILURE_MESSAGES=()
setup() {
local BINARY=$1
printf "### Building images for %s tests\n" "$BINARY"
if ! docker-compose -f "docker-compose-$BINARY.yml" build; then
if ! docker compose -f "docker-compose-$BINARY.yml" build; then
printf "❌ Unable to build integration test %s image" "$BINARY"
exit 1
fi
Expand All @@ -50,7 +50,7 @@ run_tests() {
printf "### Testing vela-%s:local image\n" "$BINARY"
for TEST_NAME in "$@"; do
printf "#### Executing test '%s-%s'\n" "$BINARY" "$TEST_NAME"
if ! docker-compose -f "docker-compose-$BINARY.yml" run --rm "$TEST_NAME"; then
if ! docker compose -f "docker-compose-$BINARY.yml" run --rm "$TEST_NAME"; then
FAILURE_MESSAGES+=("❌ Failure testing '$BINARY-$TEST_NAME'")
fi
done
Expand All @@ -59,8 +59,8 @@ run_tests() {
teardown() {
local BINARY=$1
printf "###Cleaning up %s containers\n" "$BINARY"
docker-compose -f "docker-compose-$BINARY.yml" stop -t 1
docker-compose -f "docker-compose-$BINARY.yml" down
docker compose -f "docker-compose-$BINARY.yml" stop -t 1
docker compose -f "docker-compose-$BINARY.yml" down
}

##############
Expand Down

0 comments on commit cf43e94

Please sign in to comment.