def exit_loop(self):
    if self._setup_metadata.delete_pushed:
        for item in self._setup_metadata.push_dirs:
            self.logger.test_info('Removing directory: {}'.format(item))
            shutil.rmtree(item, ignore_errors=True)
        for item in self._setup_metadata.push_files:
            self.logger.test_info('Removing file: {}'.format(item))
            os.remove(item)
    super(RemoteChildLoop, self).exit_loop()
def exit_loop(self):
    if self._setup_metadata.delete_pushed:
        for item in self._setup_metadata.push_dirs:
            self.logger.test_info('Removing directory: {}'.format(item))
            shutil.rmtree(item, ignore_errors=True)
        for item in self._setup_metadata.push_files:
            self.logger.test_info('Removing file: {}'.format(item))
            os.remove(item)
    super(RemoteChildLoop, self).exit_loop()