mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
fix(pytest): dont check process return code on kill (#2862)
fix pytest: dont check process return code on kill Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
parent
700fae6a58
commit
ee8e5a53bf
1 changed files with 2 additions and 1 deletions
|
@ -168,8 +168,9 @@ class DflyInstance:
|
|||
proc.kill()
|
||||
else:
|
||||
proc.terminate()
|
||||
if proc.wait(timeout=15) < 0:
|
||||
if proc.wait(timeout=15) < 0 and not kill:
|
||||
raise Exception("Dragfonfly did not terminate gracefully")
|
||||
|
||||
except subprocess.TimeoutExpired:
|
||||
# We need to send SIGUSR1 to DF such that it prints the stacktrace
|
||||
proc.send_signal(signal.SIGUSR1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue