Add all env vars to jinja2 templates

Ensure that the jinja2 templates have all the environment variables
which are available to the tests present.

This omission during the original 9.18 backport caused an issue where
port numbers (determined by the pytest framework) wouldn't be available
in jinja2 templates.
This commit is contained in:
Nicki Křížek 2024-11-26 14:29:42 +01:00 committed by Michal Nowak
parent 8bc6a92111
commit 972a6722de

View file

@ -521,8 +521,8 @@ def system_test_dir(request, env, system_test_name, expected_artifacts):
@pytest.fixture(scope="module")
def templates(system_test_dir: Path):
return isctest.template.TemplateEngine(system_test_dir)
def templates(system_test_dir: Path, env):
return isctest.template.TemplateEngine(system_test_dir, env)
def _run_script(