def tearDownClass(cls): AgentTest.agent.interrupted = True # while AgentTest.agent.running: # gevent.sleep(0.5) agent_stopped.wait(10) context._context = None shutil.rmtree(cls.pod_folder) _logger.info("Temp POD folder removed: %s", cls.pod_folder)
def teardown_agent(): if not agent: return _agent.interrupted = True agent_stopped.wait(10) shutil.rmtree(pod_folder)