Skip to content

Commit bf990fc

Browse files
committed
Add BASE_URL to exported env vars
1 parent bf6740e commit bf990fc

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

bin/e2e

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pytest_args=("-m" "not accessibility and not reporting and not imms_api and not
99

1010
export RAILS_ENV="end_to_end"
1111
export REDIS_URL="redis://localhost:6379/2"
12+
export BASE_URL="http://localhost:${rails_port}"
1213

1314
# Argument handling
1415

@@ -206,8 +207,11 @@ done
206207
pushd "$mavis_test_repo" > /dev/null
207208

208209
echo "[e2e] Running end-to-end tests:"
209-
echo "[e2e] BASE_URL=\"http://localhost:${rails_port}\" uv run pytest ${pytest_args[*]}"
210-
BASE_URL="http://localhost:${rails_port}" uv run pytest -m "not accessibility and not reporting and not imms_api and not pds_api" "${pytest_args[@]}"
210+
echo " export RAILS_ENV=\"$RAILS_ENV\""
211+
echo " export REDIS_URL=\"$REDIS_URL\""
212+
echo " export BASE_URL=\"$BASE_URL\""
213+
echo " uv run pytest ${pytest_args[*]}"
214+
uv run pytest "${pytest_args[@]}"
211215
pytest_exit_code=$?
212216

213217
popd > /dev/null

0 commit comments

Comments
 (0)