parameters: (dest_dir, dump_file_name, debug_info_list)
docstring: A helper method to zip all debug information results into a dump file.
  
      Args:
        dest-dir: Dir path in where we put the dump file.
        dump_file_name: Desired name of the dump file. This method makes sure
                        '.zip' will be added as ext name.
        debug_info_list: List of all debug info objects.
docstring_summary: A helper method to zip all debug information results into a dump file.
docstring_tokens: A helper method to zip all debug information results into a dump file .
function: def ZipAndCleanResults(dest_dir, dump_file_name, debug_info_list):
      """A helper method to zip all debug information results into a dump file.
  
      Args:
        dest-dir: Dir path in where we put the dump file.
        dump_file_name: Desired name of the dump file. This method makes sure
                        '.zip' will be added as ext name.
        debug_info_list: List of all debug info objects.
      """
      if not dest_dir or not dump_file_name or not debug_info_list:
        return
      cmd_helper.RunCmd(['mkdir', '-p', dest_dir])
      log_basename = os.path.basename(dump_file_name)
      log_file = os.path.join(dest_dir,
                              os.path.splitext(log_basename)[0] + '.zip')
      logging.info('Zipping debug dumps into %s ...' % log_file)
      for d in debug_info_list:
        d.ArchiveNewCrashFiles()
      # Add new dumps into the zip file. The zip may exist already if previous
      # gtest also dumps the debug information. It's OK since we clean up the old
      # dumps in each build step.
      cmd_helper.RunCmd(['zip', '-q', '-r', log_file,
                         ' '.join([d.GetStoragePath() for d in debug_info_list])])
      assert os.path.exists(log_file)
      for debug_info in debug_info_list:
        debug_info.CleanupStorage()
function_tokens: def ZipAndCleanResults ( dest_dir , dump_file_name , debug_info_list ) : if not dest_dir or not dump_file_name or not debug_info_list : return cmd_helper . RunCmd ( [ 'mkdir' , '-p' , dest_dir ] ) log_basename = os . path . basename ( dump_file_name ) log_file = os . path . join ( dest_dir , os . path . splitext ( log_basename ) [ 0 ] + '.zip' ) logging . info ( 'Zipping debug dumps into %s ...' % log_file ) for d in debug_info_list : d . ArchiveNewCrashFiles ( ) # Add new dumps into the zip file. The zip may exist already if previous # gtest also dumps the debug information. It's OK since we clean up the old # dumps in each build step. cmd_helper . RunCmd ( [ 'zip' , '-q' , '-r' , log_file , ' ' . join ( [ d . GetStoragePath ( ) for d in debug_info_list ] ) ] ) assert os . path . exists ( log_file ) for debug_info in debug_info_list : debug_info . CleanupStorage ( )