fixs integration terminate error

This commit is contained in:
cmcmarrow 2019-07-29 09:20:46 -06:00
parent 69c3106837
commit 05cd93fcfd
No known key found for this signature in database
GPG key ID: 62FAA6B3AC79AD2F

View file

@ -1081,19 +1081,22 @@ class TestDaemon(object):
Kill the minion and master processes
'''
if hasattr(self.sub_minion_process, 'terminate'):
log.error('self.sub_minion_process can\'t be terminate.')
self.sub_minion_process.terminate()
else:
log.error('self.sub_minion_process can\'t be terminate.')
if hasattr(self.minion_process, 'terminate'):
log.error('self.minion_process can\'t be terminate.')
self.minion_process.terminate()
else:
log.error('self.minion_process can\'t be terminate.')
if hasattr(self, 'proxy_process'):
self.proxy_process.terminate()
if hasattr(self.master_process, 'terminate'):
log.error('self.master_process can\'t be terminate.')
self.master_process.terminate()
else:
log.error('self.master_process can\'t be terminate.')
try:
self.syndic_process.terminate()