From 4b84d36288178c90c06ba622d740d2649d8d271a Mon Sep 17 00:00:00 2001 From: ykim-1 Date: Tue, 25 Jun 2024 09:47:47 -0700 Subject: [PATCH] gha test 2 with limited retries --- scripts/test_all.sh | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/scripts/test_all.sh b/scripts/test_all.sh index 6319cb47..c1d46968 100755 --- a/scripts/test_all.sh +++ b/scripts/test_all.sh @@ -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() { @@ -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