testing/unexpected_passes_common/result_output.py
def _ConvertUnmatchedResultsToStringDict(unmatched_results):
  """Converts |unmatched_results| to a dict of strings for reporting.

  Args:
    unmatched_results: A dict mapping builder names (string) to lists of
        data_types.Result who did not have a matching expectation.

  Returns:
    A string dictionary representation of |unmatched_results| in the following
    format:
    {
      test_name: {
        builder_name: {
          step_name: [
            individual_result_string_1,
            individual_result_string_2,
            ...
          ],
          ...
        },
        ...
      },
      ...
    }
  """
  output_dict = {}
  for builder, results in unmatched_results.items():
    for r in results:
      builder_map = output_dict.setdefault(r.test, {})
      step_map = builder_map.setdefault(builder, {})
      result_str = 'Got "%s" on %s with tags [%s]' % (
          r.actual_result, data_types.BuildLinkFromBuildId(
              r.build_id), ' '.join(r.tags))
      step_map.setdefault(r.step, []).append(result_str)
  return output_dict
Converts |unmatched_results| to a dict of strings for reporting.

  Args:
    unmatched_results: A dict mapping builder names (string) to lists of
        data_types.Result who did not have a matching expectation.

  Returns:
    A string dictionary representation of |unmatched_results| in the following
    format:
    {
      test_name: {
        builder_name: {
          step_name: [
            individual_result_string_1,
            individual_result_string_2,
            ...
          ],
          ...
        },
        ...
      },
      ...
    }
  
Converts |unmatched_results| to a dict of strings for reporting.
Converts |unmatched_results| to a dict of strings for reporting .
def _ConvertUnmatchedResultsToStringDict(unmatched_results):
  output_dict = {}
  for builder, results in unmatched_results.items():
    for r in results:
      builder_map = output_dict.setdefault(r.test, {})
      step_map = builder_map.setdefault(builder, {})
      result_str = 'Got "%s" on %s with tags [%s]' % (
          r.actual_result, data_types.BuildLinkFromBuildId(
              r.build_id), ' '.join(r.tags))
      step_map.setdefault(r.step, []).append(result_str)
  return output_dict
def _ConvertUnmatchedResultsToStringDict ( unmatched_results ) : output_dict = { } for builder , results in unmatched_results . items ( ) : for r in results : builder_map = output_dict . setdefault ( r . test , { } ) step_map = builder_map . setdefault ( builder , { } ) result_str = 'Got "%s" on %s with tags [%s]' % ( r . actual_result , data_types . BuildLinkFromBuildId ( r . build_id ) , ' ' . join ( r . tags ) ) step_map . setdefault ( r . step , [ ] ) . append ( result_str ) return output_dict
Converts |unmatched_results| to a dict of strings for reporting.
Converts |unmatched_results| to a dict of strings for reporting .
"""Converts |unmatched_results| to a dict of strings for reporting.

  Args:
    unmatched_results: A dict mapping builder names (string) to lists of
        data_types.Result who did not have a matching expectation.

  Returns:
    A string dictionary representation of |unmatched_results| in the following
    format:
    {
      test_name: {
        builder_name: {
          step_name: [
            individual_result_string_1,
            individual_result_string_2,
            ...
          ],
          ...
        },
        ...
      },
      ...
    }
  """
A string dictionary representation of |unmatched_results| in the following
format:
{
test_name: {
builder_name: {
step_name: [
individual_result_string_1,
individual_result_string_2,

],

},

},

}
A string dictionary representation of |unmatched_results| in the following format : { test_name : { builder_name : { step_name : [ individual_result_string_1 individual_result_string_2 ] } } }
unmatched_results
A dict mapping builder names (string) to lists of
data_types.Result who did not have a matching expectation.
A dict mapping builder names ( string ) to lists of data_types . Result who did not have a matching expectation .