def tearDown(self): # Check that the processes are still alive. for process in self.processes_to_kill: self.assertEqual(process.poll(), None) # Kill the Plasma store and Plasma manager processes. if USE_VALGRIND: time.sleep(1) # give processes opportunity to finish work for process in self.processes_to_kill: process.send_signal(signal.SIGTERM) process.wait() if process.returncode != 0: print("aborting due to valgrind error") os._exit(-1) else: for process in self.processes_to_kill: process.kill() # Clean up the Redis server. services.cleanup()
def tearDown(self): # Check the process are still alive for process in self.processes_to_kill: # Popen.poll(): Check if child process has terminated. self.assertEqual(process.poll(), None) # Kill the Plasma store and Plasma manger processes if USE_VALGRIND: time.sleep(1) for process in self.processes_to_kill: process.send_signal(signal.SIGTERM) process.wait() if process.returncode != 0: print("aborting due to valgrind error") os._exit(-1) else: for process in self.processes_to_kill: process.kill() # Clean up the redis server services.cleanup()