Skip to content

Commit

Permalink
Merge pull request #5 from ykim-1/test/use_single_instance_of_config_…
Browse files Browse the repository at this point in the history
…yaml

gha test 2 with limited retries
  • Loading branch information
ykim-akamai authored Jun 25, 2024
2 parents b1e7840 + 4b84d36 commit d4b52b2
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scripts/test_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PARALLEL_JOBS="${PARALLEL_JOBS:=3}"

run_test() {
ANSIBLE_RETRY_FILES_ENABLED=false ansible-test integration $1
ansible-test integration $1
}

cleanup() {
Expand All @@ -13,20 +13,17 @@ cleanup() {
fi
}

# Set trap to ensure cleanup is run on script exit
trap cleanup EXIT

# Create integration_yaml
make create-integration-config
make create-e2e-firewall
CLEANUP_DONE=0

make create-integration-config || exit 1
make create-e2e-firewall || exit 1

export -f run_test

# Run tests in parallel
parallel -j $PARALLEL_JOBS --group --keep-order run_test ::: $(ls tests/integration/targets)
parallel -j $PARALLEL_JOBS --group --keep-order --retries 3 run_test ::: $(ls tests/integration/targets)
TEST_EXIT_CODE=$?


cleanup

exit $TEST_EXIT_CODE

0 comments on commit d4b52b2

Please sign in to comment.