fix(smoke-test): add FETCHML_REPO_ROOT to env file
Ensure FETCHML_REPO_ROOT is set in the env file passed to docker-compose. This fixes path resolution so fallback paths don't incorrectly use parent directory.
This commit is contained in:
parent
3ff5ef320a
commit
cebcb6115f
1 changed files with 2 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ if [ "$env" = "dev" ]; then
|
|||
# Create env file for docker-compose (process substitution doesn't work)
|
||||
env_file="$SMOKE_TEST_DATA_DIR/.env"
|
||||
echo "SMOKE_TEST_DATA_DIR=$SMOKE_TEST_DATA_DIR" > "$env_file"
|
||||
echo "FETCHML_REPO_ROOT=$repo_root" >> "$env_file"
|
||||
|
||||
# Update compose project args to include env file
|
||||
compose_project_args=("--project-directory" "$repo_root" "--env-file" "$env_file")
|
||||
|
|
@ -163,6 +164,7 @@ else
|
|||
# Create env file for docker-compose (process substitution doesn't work)
|
||||
env_file="$SMOKE_TEST_DATA_DIR/.env"
|
||||
echo "SMOKE_TEST_DATA_DIR=$SMOKE_TEST_DATA_DIR" > "$env_file"
|
||||
echo "FETCHML_REPO_ROOT=$repo_root" >> "$env_file"
|
||||
|
||||
# Update compose project args to include env file
|
||||
compose_project_args=("--project-directory" "$repo_root" "--env-file" "$env_file")
|
||||
|
|
|
|||
Loading…
Reference in a new issue