testing/chromoting/chromoting_test_utilities.py
def TestMachineCleanup(user_profile_dir, host_logs=None):
  """Cleans up test machine so as not to impact other tests.

  Args:
    user_profile_dir: the user-profile folder used by Chromoting tests.
    host_logs: List of me2me host logs; these will be deleted.
  """

  # Stop the host service.
  RunCommandInSubProcess(CHROMOTING_HOST_PATH + ' --stop')

  # Cleanup any host logs.
  if host_logs:
    for host_log in host_logs:
      RunCommandInSubProcess('rm %s' % host_log)

  # Remove the user-profile dir
  if os.path.exists(user_profile_dir):
    shutil.rmtree(user_profile_dir)
Cleans up test machine so as not to impact other tests.

  Args:
    user_profile_dir: the user-profile folder used by Chromoting tests.
    host_logs: List of me2me host logs; these will be deleted.
  
Cleans up test machine so as not to impact other tests.
Cleans up test machine so as not to impact other tests .
def TestMachineCleanup(user_profile_dir, host_logs=None):
  RunCommandInSubProcess(CHROMOTING_HOST_PATH + ' --stop')
  if host_logs:
    for host_log in host_logs:
      RunCommandInSubProcess('rm %s' % host_log)
  if os.path.exists(user_profile_dir):
    shutil.rmtree(user_profile_dir)
def TestMachineCleanup ( user_profile_dir , host_logs = None ) : RunCommandInSubProcess ( CHROMOTING_HOST_PATH + ' --stop' ) if host_logs : for host_log in host_logs : RunCommandInSubProcess ( 'rm %s' % host_log ) if os . path . exists ( user_profile_dir ) : shutil . rmtree ( user_profile_dir )
Cleans up test machine so as not to impact other tests.
Cleans up test machine so as not to impact other tests .
"""Cleans up test machine so as not to impact other tests.

  Args:
    user_profile_dir: the user-profile folder used by Chromoting tests.
    host_logs: List of me2me host logs; these will be deleted.
  """ # Stop the host service. # Cleanup any host logs. # Remove the user-profile dir
user_profile_dir
the user-profile folder used by Chromoting tests.
the user - profile folder used by Chromoting tests .
host_logs
List of me2me host logs; these will be deleted.
List of me2me host logs ; these will be deleted .