Ejemplo n.º 1
0
 def tearDown(self):
     for exec_docker_process in self.exec_docker_processes:
         try:
             os.kill(exec_docker_process.pid)
         except:
             pass
     shutil.rmtree(self.overridden_specs_path)
     if os.path.exists(constants.REPOS_DIR):
         shutil.rmtree(constants.REPOS_DIR)
     if os.path.exists(constants.COMPOSE_DIR):
         shutil.rmtree(constants.COMPOSE_DIR)
     shutil.rmtree('/tmp/fake-repo')
     save_config(self.previous_config)
     self.handler.log_to_client_output = ''
     client_logger.removeHandler(self.handler)
Ejemplo n.º 2
0
 def tearDown(self):
     for exec_docker_process in self.exec_docker_processes:
         try:
             os.kill(exec_docker_process.pid)
         except:
             pass
     shutil.rmtree(self.overridden_specs_path)
     if os.path.exists(constants.COMPOSE_DIR):
         shutil.rmtree(constants.COMPOSE_DIR)
     shutil.rmtree('/tmp/fake-repo')
     save_config(self.previous_config)
     self.handler.log_to_client_output = ''
     client_logger.removeHandler(self.handler)
     nfs_client.unmount_all_repos()
     reset_memoize_cache()
     nfs_server._write_exports_config(set())
Ejemplo n.º 3
0
 def tearDown(self):
     for exec_docker_process in self.exec_docker_processes:
         try:
             os.kill(exec_docker_process.pid)
         except:
             pass
     shutil.rmtree(self.overridden_specs_path)
     if os.path.exists(constants.COMPOSE_DIR):
         shutil.rmtree(constants.COMPOSE_DIR)
     shutil.rmtree("/tmp/fake-repo")
     save_config(self.previous_config)
     self.handler.log_to_client_output = ""
     client_logger.removeHandler(self.handler)
     nfs_client.unmount_all_repos()
     reset_memoize_cache()
     nfs_server._write_exports_config(set())