]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add generic isctest.run.EnvCmd helper to pytest
authorNicki Křížek <nicki@isc.org>
Thu, 23 Oct 2025 10:36:56 +0000 (12:36 +0200)
committerNicki Křížek <nicki@isc.org>
Mon, 8 Dec 2025 13:57:47 +0000 (14:57 +0100)
commitff613a72d73ba6b778d24c4e0bd3190d6c8930c7
treebde2df12af36e2d521d31327f95154300d702d65
parenta8bf53411d14b8b009cb3a6b3c5bc12a5fd7a2ea
Add generic isctest.run.EnvCmd helper to pytest

A generic helper that calls the environment-specified binaries in a
developer-friendly manner, i.e. passing arguments as strings rather than
having to split them first.

The isctest.run.cmd() remains as the basis which provides a clean and
robust interface, while the isctest.run.EnvCmd() can be used as a
convenient wrapper for tests, or when there are some shared default
parameters.

The isctest.run.Dig() is superseded with the isctest.run.EnvCmd(). In
the future, we might revisit adding Dig() or command-specific helpers
again, but it probably only makes sense if they offer command-aware
attributes / methods, rather than just being shortcuts to
isctest.run.EnvCmd().
bin/tests/system/isctest/run.py
bin/tests/system/keepalive/tests_keepalive.py