File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ BICEP_SAMPLES=(
103103
104104# 4. Calculate Shard
105105# Combine script-based, Terraform, and Bicep samples into one array
106- # ALL_SAMPLES=("${SAMPLES[@]}" "${TERRAFORM_SAMPLES[@]}" "${BICEP_SAMPLES[@]}")
107- ALL_SAMPLES=(" ${BICEP_SAMPLES[@]} " )
106+ ALL_SAMPLES=(" ${SAMPLES[@]} " " ${TERRAFORM_SAMPLES[@]} " " ${BICEP_SAMPLES[@]} " )
108107TOTAL=${# ALL_SAMPLES[@]}
109108SHARD=${1:- 1}
110109SPLITS=${2:- 1}
@@ -174,10 +173,8 @@ for (( i=START; i<START+COUNT; i++ )); do
174173 echo " Completed: $path "
175174
176175 # Cleanup Docker resources after each test to free up disk space
177- # IMPORTANT: Exclude LocalStack container from cleanup to maintain state
178- echo " Cleaning up Docker resources (excluding LocalStack)..."
179- docker ps -aq --filter " label!=com.docker.compose.project=localstack" | xargs -r docker rm -f 2> /dev/null || true
180- docker images -q --filter " dangling=true" | xargs -r docker rmi -f 2> /dev/null || true
176+ echo " Cleaning up Docker resources..."
177+ docker system prune -af --volumes || true
181178 echo " "
182179done
183180
You can’t perform that action at this time.
0 commit comments