##// END OF EJS Templates
Print warning message if process could not be killed.
Bradley M. Froehle -
Show More
@@ -400,6 +400,9 b' class IPTester(object):'
400 def __del__(self):
400 def __del__(self):
401 """Cleanup on exit by killing any leftover processes."""
401 """Cleanup on exit by killing any leftover processes."""
402 for subp in self.processes:
402 for subp in self.processes:
403 if subp.poll() is not None:
404 continue # process is already dead
405
403 try:
406 try:
404 print('Cleaning stale PID: %d' % subp.pid)
407 print('Cleaning stale PID: %d' % subp.pid)
405 subp.kill()
408 subp.kill()
@@ -408,6 +411,10 b' class IPTester(object):'
408 # really gone, ignore it.
411 # really gone, ignore it.
409 pass
412 pass
410
413
414 if subp.poll() is None:
415 # The process did not die...
416 print('... failed. Manual cleanup may be required.'
417 % subp.pid)
411
418
412 def make_runners():
419 def make_runners():
413 """Define the top-level packages that need to be tested.
420 """Define the top-level packages that need to be tested.
General Comments 0
You need to be logged in to leave comments. Login now