original_docstring: Fills only required nodes for egtests in xctestrun file.
  
      Returns:
        A node with filled required fields about egtests.
      
docstring: Fills only required nodes for egtests in xctestrun file.
docstring_tokens: Fills only required nodes for egtests in xctestrun file .
code: def fill_xctestrun_node(self):
      """Fills only required nodes for egtests in xctestrun file.
  
      Returns:
        A node with filled required fields about egtests.
      """
      module = self.module_name + '_module'
  
      # If --run-with-custom-webkit is passed as a test arg, set up
      # DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH to load the custom webkit
      # modules.
      dyld_path = self.project_path
      if '--run-with-custom-webkit' in self.test_args:
        if self.host_app_path:
          webkit_path = os.path.join(self.host_app_path, 'WebKitFrameworks')
        else:
          webkit_path = os.path.join(self.test_app_path, 'WebKitFrameworks')
        dyld_path = dyld_path + ':' + webkit_path
  
      module_data = {
          'TestBundlePath': self.test_app_path,
          'TestHostPath': self.test_app_path,
          'TestHostBundleIdentifier': get_bundle_id(self.test_app_path),
          'TestingEnvironmentVariables': {
              'DYLD_LIBRARY_PATH':
                  '%s:__PLATFORMS__/iPhoneSimulator.platform/Developer/Library' %
                  dyld_path,
              'DYLD_FRAMEWORK_PATH':
                  '%s:__PLATFORMS__/iPhoneSimulator.platform/'
                  'Developer/Library/Frameworks' % dyld_path,
          }
      }
  
      if self.inserted_libs:
        module_data['TestingEnvironmentVariables'][
            'DYLD_INSERT_LIBRARIES'] = ':'.join(self.inserted_libs)
  
      xctestrun_data = {module: module_data}
      gtest_filter = []
  
      if self.included_tests:
        gtest_filter = get_gtest_filter(self.included_tests, invert=False)
      elif self.excluded_tests:
        gtest_filter = get_gtest_filter(self.excluded_tests, invert=True)
  
      if gtest_filter:
        # Removed previous gtest-filter if exists.
        self.test_args = [el for el in self.test_args
                          if not el.startswith('--gtest_filter=')]
        self.test_args.append('--gtest_filter=%s' % gtest_filter)
  
      if self.repeat_count > 1:
        self.test_args.append('--gtest_repeat=%s' % self.repeat_count)
  
      if self.env_vars:
        xctestrun_data[module].update({'EnvironmentVariables': self.env_vars})
      if self.test_args:
        xctestrun_data[module].update({'CommandLineArguments': self.test_args})
  
      if self.excluded_tests:
        xctestrun_data[module].update({
            'SkipTestIdentifiers': self.excluded_tests
        })
      if self.included_tests:
        xctestrun_data[module].update({
            'OnlyTestIdentifiers': self.included_tests
        })
      return xctestrun_data
code_tokens: def fill_xctestrun_node ( self ) : module = self . module_name + '_module' dyld_path = self . project_path if '--run-with-custom-webkit' in self . test_args : if self . host_app_path : webkit_path = os . path . join ( self . host_app_path , 'WebKitFrameworks' ) else : webkit_path = os . path . join ( self . test_app_path , 'WebKitFrameworks' ) dyld_path = dyld_path + ':' + webkit_path module_data = { 'TestBundlePath' : self . test_app_path , 'TestHostPath' : self . test_app_path , 'TestHostBundleIdentifier' : get_bundle_id ( self . test_app_path ) , 'TestingEnvironmentVariables' : { 'DYLD_LIBRARY_PATH' : '%s:__PLATFORMS__/iPhoneSimulator.platform/Developer/Library' % dyld_path , 'DYLD_FRAMEWORK_PATH' : '%s:__PLATFORMS__/iPhoneSimulator.platform/' 'Developer/Library/Frameworks' % dyld_path , } } if self . inserted_libs : module_data [ 'TestingEnvironmentVariables' ] [ 'DYLD_INSERT_LIBRARIES' ] = ':' . join ( self . inserted_libs ) xctestrun_data = { module : module_data } gtest_filter = [ ] if self . included_tests : gtest_filter = get_gtest_filter ( self . included_tests , invert = False ) elif self . excluded_tests : gtest_filter = get_gtest_filter ( self . excluded_tests , invert = True ) if gtest_filter : self . test_args = [ el for el in self . test_args if not el . startswith ( '--gtest_filter=' ) ] self . test_args . append ( '--gtest_filter=%s' % gtest_filter ) if self . repeat_count > 1 : self . test_args . append ( '--gtest_repeat=%s' % self . repeat_count ) if self . env_vars : xctestrun_data [ module ] . update ( { 'EnvironmentVariables' : self . env_vars } ) if self . test_args : xctestrun_data [ module ] . update ( { 'CommandLineArguments' : self . test_args } ) if self . excluded_tests : xctestrun_data [ module ] . update ( { 'SkipTestIdentifiers' : self . excluded_tests } ) if self . included_tests : xctestrun_data [ module ] . update ( { 'OnlyTestIdentifiers' : self . included_tests } ) return xctestrun_data
short_docstring: Fills only required nodes for egtests in xctestrun file.
short_docstring_tokens: Fills only required nodes for egtests in xctestrun file .
comment: """Fills only required nodes for egtests in xctestrun file.
  
      Returns:
        A node with filled required fields about egtests.
      """$SEP$# If --run-with-custom-webkit is passed as a test arg, set up$SEP$# DYLD_FRAMEWORK_PATH and DYLD_LIBRARY_PATH to load the custom webkit$SEP$# modules.$SEP$# Removed previous gtest-filter if exists.