mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 23:00:00 -04:00
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:
parent
8bc6a92111
commit
972a6722de
1 changed files with 2 additions and 2 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue