def GetSummaryLine(title, passed, failed):
  """Summarize the number of iterations which passed and failed.

  Args:
    title: The title for the summary line.
    passed: The number of iterations that passed.
    failed: The number of iterations that failed.
  """
  if passed == 0 and failed == 0:
    return '%s aborted!' % title
  return '%s (%s passed, %s failed)' % (title, passed, failed)