From 972a6722de02df0f1e723077e9bd3b350d3e41b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicki=20K=C5=99=C3=AD=C5=BEek?= Date: Tue, 26 Nov 2024 14:29:42 +0100 Subject: [PATCH] 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. --- bin/tests/system/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/conftest.py b/bin/tests/system/conftest.py index bc17f000ae..37a26bb549 100644 --- a/bin/tests/system/conftest.py +++ b/bin/tests/system/conftest.py @@ -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(