mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch '2625-the-shutdown-system-test-is-not-capturing-enough' into 'main'
Resolve "The shutdown system test is not capturing enough" Closes #2625 See merge request isc-projects/bind9!4883
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
import os
|
||||
import random
|
||||
import signal
|
||||
import subprocess
|
||||
from string import ascii_lowercase as letters
|
||||
import time
|
||||
@@ -182,7 +183,14 @@ def test_named_shutdown(named_port, control_port):
|
||||
time.sleep(1)
|
||||
|
||||
if not is_dead:
|
||||
named_proc.kill()
|
||||
named_proc.send_signal(signal.SIGABRT)
|
||||
for _ in range(MAX_TIMEOUT):
|
||||
if named_proc.poll() is not None:
|
||||
is_dead = True
|
||||
break
|
||||
time.sleep(1)
|
||||
if not is_dead:
|
||||
named_proc.kill()
|
||||
|
||||
assert is_dead
|
||||
# Ensures that named exited gracefully.
|
||||
|
Reference in New Issue
Block a user