testing/chromoting/chromoting_test_utilities.py
def GetJidListFromTestResults(results):
  """Parse the output of a test execution to obtain the JID used by the test.

  Args:
    results: stdio contents of test execution.

  Returns:
    jids_used: List of JIDs used by test; empty list if not found.
  """

  # Reg-ex defining the JID information in the string being parsed.
  jid_re = '(Connecting to )(.*.gserviceaccount.com/chromoting.*)(. Local.*)'
  jids_used = []
  for line in results.split('\n'):
    match = re.search(jid_re, line)
    if match:
      jid_used = match.group(2)
      if jid_used not in jids_used:
        jids_used.append(jid_used)

  return jids_used
Parse the output of a test execution to obtain the JID used by the test.

  Args:
    results: stdio contents of test execution.

  Returns:
    jids_used: List of JIDs used by test; empty list if not found.
  
Parse the output of a test execution to obtain the JID used by the test.
Parse the output of a test execution to obtain the JID used by the test .
def GetJidListFromTestResults(results):
  jid_re = '(Connecting to )(.*.gserviceaccount.com/chromoting.*)(. Local.*)'
  jids_used = []
  for line in results.split('\n'):
    match = re.search(jid_re, line)
    if match:
      jid_used = match.group(2)
      if jid_used not in jids_used:
        jids_used.append(jid_used)
  return jids_used
def GetJidListFromTestResults ( results ) : jid_re = '(Connecting to )(.*.gserviceaccount.com/chromoting.*)(. Local.*)' jids_used = [ ] for line in results . split ( '\n' ) : match = re . search ( jid_re , line ) if match : jid_used = match . group ( 2 ) if jid_used not in jids_used : jids_used . append ( jid_used ) return jids_used
Parse the output of a test execution to obtain the JID used by the test.
Parse the output of a test execution to obtain the JID used by the test .
"""Parse the output of a test execution to obtain the JID used by the test.

  Args:
    results: stdio contents of test execution.

  Returns:
    jids_used: List of JIDs used by test; empty list if not found.
  """ # Reg-ex defining the JID information in the string being parsed.
List of JIDs used by test; empty list if not found.
List of JIDs used by test ; empty list if not found .
jids_used
results
stdio contents of test execution.
stdio contents of test execution .