def cleanup(self, host): if self._shill_xmlrpc_proxy is not None: self._shill_xmlrpc_proxy.clean_profiles() if self._router is not None: self._router.close() buffet_config.naive_restart(host=host)
def close(self): """Cleanup to be used when done with this instance.""" buffet_config.naive_restart() self._gcd.close() if self._temp_dir_path is not None: shutil.rmtree(self._temp_dir_path, True)
def cleanup(self, host): buffet_config.naive_restart(host=host)
def cleanup(self): """Clean up processes altered during the test.""" buffet_config.naive_restart()