Commit ca27cd6813 for bind
commit ca27cd6813ef8807ece6fd48951f41706b7b34f9
Author: Nicki Křížek <nicki@isc.org>
Date: Tue Nov 3 11:54:41 2026 +0000
Reload ns1 through rndc in the xferquota test
SIGHUP was the only way the system tests could reload a server when
this check was written. ns1.reload() does the same through rndc and
waits for the reload to finish; the notify test still covers the
SIGHUP-triggered reload.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/xferquota/tests_xferquota.py b/bin/tests/system/xferquota/tests_xferquota.py
index 4367fdbf65..4daa4bf554 100644
--- a/bin/tests/system/xferquota/tests_xferquota.py
+++ b/bin/tests/system/xferquota/tests_xferquota.py
@@ -13,10 +13,8 @@ from re import compile as Re
import glob
import multiprocessing
-import os
import re
import shutil
-import signal
import time
import dns.message
@@ -43,11 +41,7 @@ pytestmark = pytest.mark.extra_artifacts(
def test_xferquota(named_port, ns1, ns2):
with newer_mtime("ns1/changing.db"):
shutil.copyfile("ns1/changing2.db", "ns1/changing.db")
- with open("ns1/named.pid", "r", encoding="utf-8") as pidfile:
- pid = int(pidfile.read())
- os.kill(pid, signal.SIGHUP)
- with ns1.watch_log_from_start() as watcher:
- watcher.wait_for_line("received SIGHUP signal to reload zones")
+ ns1.reload()
def check_line_count():
matching_line_count = 0