mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-23 02:28:55 +00:00
Capture the resolver's startup and shutdown logging
Also set the debugging to 99.
This commit is contained in:
parent
65a3450b8b
commit
3651c58a6a
@ -196,8 +196,11 @@ def test_named_shutdown(ports, kill_method):
|
|||||||
resolver.nameservers = ["10.53.0.3"]
|
resolver.nameservers = ["10.53.0.3"]
|
||||||
resolver.port = named_ports.dns
|
resolver.port = named_ports.dns
|
||||||
|
|
||||||
named_cmdline = [named, "-c", cfg_file, "-f"]
|
named_cmdline = [named, "-c", cfg_file, "-d", "99", "-g"]
|
||||||
with subprocess.Popen(named_cmdline, cwd=cfg_dir) as named_proc:
|
with open(os.path.join(cfg_dir, "named.run"), "ab") as named_log:
|
||||||
|
with subprocess.Popen(
|
||||||
|
named_cmdline, cwd=cfg_dir, stderr=named_log
|
||||||
|
) as named_proc:
|
||||||
try:
|
try:
|
||||||
assert named_proc.poll() is None, "named isn't running"
|
assert named_proc.poll() is None, "named isn't running"
|
||||||
assert wait_for_named_loaded(resolver)
|
assert wait_for_named_loaded(resolver)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user