testing/merge_scripts/noop_merge.py
def noop_merge(output_json, jsons_to_merge):
  """Use the first supplied JSON as the output JSON.

  Primarily intended for unsharded tasks.

  Args:
    output_json: A path to a JSON file to which the results should be written.
    jsons_to_merge: A list of paths to JSON files.
  """
  if len(jsons_to_merge) > 1:
    print >> sys.stderr, (
        'Multiple JSONs provided: %s' % ','.join(jsons_to_merge))
    return 1
  if jsons_to_merge:
    shutil.copyfile(jsons_to_merge[0], output_json)
  else:
    with open(output_json, 'w') as f:
      json.dump({}, f)
  return 0
Use the first supplied JSON as the output JSON.

  Primarily intended for unsharded tasks.

  Args:
    output_json: A path to a JSON file to which the results should be written.
    jsons_to_merge: A list of paths to JSON files.
  
Use the first supplied JSON as the output JSON.
Primarily intended for unsharded tasks.
Use the first supplied JSON as the output JSON . Primarily intended for unsharded tasks .
def noop_merge(output_json, jsons_to_merge):
  if len(jsons_to_merge) > 1:
    print >> sys.stderr, (
        'Multiple JSONs provided: %s' % ','.join(jsons_to_merge))
    return 1
  if jsons_to_merge:
    shutil.copyfile(jsons_to_merge[0], output_json)
  else:
    with open(output_json, 'w') as f:
      json.dump({}, f)
  return 0
def noop_merge ( output_json , jsons_to_merge ) : if len ( jsons_to_merge ) > 1 : print >> sys . stderr , ( 'Multiple JSONs provided: %s' % ',' . join ( jsons_to_merge ) ) return 1 if jsons_to_merge : shutil . copyfile ( jsons_to_merge [ 0 ] , output_json ) else : with open ( output_json , 'w' ) as f : json . dump ( { } , f ) return 0
Use the first supplied JSON as the output JSON.
Use the first supplied JSON as the output JSON .
"""Use the first supplied JSON as the output JSON.

  Primarily intended for unsharded tasks.

  Args:
    output_json: A path to a JSON file to which the results should be written.
    jsons_to_merge: A list of paths to JSON files.
  """
output_json
A path to a JSON file to which the results should be written.
A path to a JSON file to which the results should be written .
jsons_to_merge
A list of paths to JSON files.
A list of paths to JSON files .