watcher.wait_for_line("all zones loaded")
+@pytest.fixture(autouse=True)
+def named_log_test_markers(request, servers):
+ """Send `rndc null` message with a test ID to each named instance."""
+
+ def mark(event):
+ for server in servers.values():
+ if not isinstance(server, isctest.instance.NamedInstance):
+ continue
+ try:
+ with server.rndc_client(timeout=2) as c:
+ c.call(f"null ------ {event} {request.node.nodeid} ------")
+ except (
+ OSError,
+ isctest.rndc.RNDCException,
+ isctest.rndc.RNDCProtocolError,
+ ):
+ # best-effort: the instance may be stopped or use a
+ # non-standard control channel
+ pass
+
+ mark("BEGIN")
+ yield
+ mark("END")
+
+
@pytest.fixture(scope="module", autouse=True)
def configure_algorithm_set(request):
"""Configure the algorithm set to use in tests."""