1
0
mirror of https://github.com/searx/searx synced 2024-12-11 16:35:20 +01:00

[fix] robot test - kill the only subprocess

This commit is contained in:
Adam Tauber 2015-05-02 20:59:50 +02:00
parent 93fd1e4c76
commit f1fc315318

View File

@ -56,9 +56,7 @@ class SearxRobotLayer(Layer):
) )
def tearDown(self): def tearDown(self):
# send TERM signal to all processes in my group, to stop subprocesses os.kill(self.server.pid, 15)
os.killpg(os.getpgid(self.server.pid), 15)
# remove previously set environment variable # remove previously set environment variable
del os.environ['SEARX_SETTINGS_PATH'] del os.environ['SEARX_SETTINGS_PATH']