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:
Jeremie Fraeys 2026-02-24 11:48:10 -05:00
parent 3ff5ef320a
commit cebcb6115f
No known key found for this signature in database

View file

@ -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")