Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 def teardown_agent():
     if not agent:
         return
     _agent.interrupted = True
     agent_stopped.wait(10)
     shutil.rmtree(pod_folder)
Example #4
0
 def teardown_agent():
     if not agent:
         return
     _agent.interrupted = True
     agent_stopped.wait(10)
     shutil.rmtree(pod_folder)