Tests: graceful shutdown.

This commit is contained in:
Andrey Zelenkov
2018-04-18 16:02:37 +03:00
parent ab4f867996
commit 3e2326cff1

View File

@@ -102,7 +102,7 @@ class TestUnit(unittest.TestCase):
with open(self.testdir + '/unit.pid', 'r') as f:
pid = f.read().rstrip()
call(['kill', pid])
call(['kill', '-s', 'QUIT', pid])
for i in range(50):
if not os.path.exists(self.testdir + '/unit.pid'):