mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #53953 from Ch3LL/improve_git_test
Send SIGTERM to webserver in teardown of gitfs tests
This commit is contained in:
commit
cc1cda1099
1 changed files with 4 additions and 1 deletions
|
@ -653,7 +653,10 @@ class GitPillarHTTPTestBase(GitPillarTestBase, WebserverMixin):
|
|||
for proc in (cls.case.nginx_proc, cls.case.uwsgi_proc):
|
||||
if proc is not None:
|
||||
try:
|
||||
proc.send_signal(signal.SIGQUIT)
|
||||
proc.send_signal(signal.SIGTERM)
|
||||
time.sleep(1)
|
||||
if proc.is_running():
|
||||
proc.send_signal(signal.SIGKILL)
|
||||
except psutil.NoSuchProcess:
|
||||
pass
|
||||
shutil.rmtree(cls.root_dir, ignore_errors=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue