Skip to content

Commit e21733e

Browse files
committed
Re-add envvar required by pulp-cli tests
PULP_API_ROOT environment variable is required by some pulp-cli tests. This re-introduces the variable only for running those tests.
1 parent dbe778b commit e21733e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

templates/github/.github/workflows/scripts/script.sh.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ fi
156156
{%- if test_cli %}
157157
{%- if docker_fixtures %}
158158
export PULP_FIXTURES_URL="http://pulp-fixtures:8080"
159+
# some pulp-cli tests use the api root envvar
160+
export PULP_API_ROOT="$(EDITOR=cat pulp config edit 2>/dev/null | awk -F'"' '/api_root/{print $2; exit}')"
159161
{%- endif %}
160162
pushd ../{{ cli_package }}
161163
pip install -r test_requirements.txt

0 commit comments

Comments
 (0)