Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

Commit c389c3d

Browse files
committed
Make terraform use a custom data dir per-test configuration and user id
1 parent f30377d commit c389c3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ prepare_ansible_extra_args_array true
195195
# Execute
196196
#
197197

198-
export TF_IN_AUTOMATION=true
199198
cd "$TEST_CASE_DIR"
200199

201200
#
@@ -207,6 +206,9 @@ if [ "$BOOTSTRAP" == 'true' ] && [ "$SKIP_TERRAFORM" != 'true' ]; then
207206

208207
cd terraform
209208

209+
export TF_IN_AUTOMATION=true
210+
export TF_DATA_DIR=".terraform/$TEST_CONFIGURATION/$TEST_USER_ID"
211+
210212
terraform init \
211213
"${TERRAFORM_COMMON_EXTRA_ARGS[@]}" \
212214
-backend-config="bucket=vector-test-harness-state" \

0 commit comments

Comments
 (0)