mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 04:52:05 -04: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:
commit
fdf5184bf5
1 changed files with 9 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue