From e21733ed13e88b2f03905cde002e7abd590aecbf Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Mon, 30 Mar 2026 13:01:14 -0300 Subject: [PATCH] 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. --- templates/github/.github/workflows/scripts/script.sh.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/github/.github/workflows/scripts/script.sh.j2 b/templates/github/.github/workflows/scripts/script.sh.j2 index fc4e5234..63b850f8 100755 --- a/templates/github/.github/workflows/scripts/script.sh.j2 +++ b/templates/github/.github/workflows/scripts/script.sh.j2 @@ -156,6 +156,8 @@ fi {%- if test_cli %} {%- if docker_fixtures %} export PULP_FIXTURES_URL="http://pulp-fixtures:8080" +# some pulp-cli tests use the api root envvar +export PULP_API_ROOT="$(EDITOR=cat pulp config edit 2>/dev/null | awk -F'"' '/api_root/{print $2; exit}')" {%- endif %} pushd ../{{ cli_package }} pip install -r test_requirements.txt