parameters: ( self, options=None )
return_statement: return self.__xml.toxml()
docstring: options
        [type, log]
docstring_summary: options
        [type, log]
docstring_tokens: options [ type log ]
function: def run( self, options=None ):
      '''
      options
        [type, log]
      '''
      # check if are running something against the build tree
      if len( options ) > 2:
        against_build = options[2]
  
  
      # create the CDash XML elements
  
      # .. the <Site> element
      siteElement = self.createSiteElement( against_build )
  
      # .. the nested element of a certain type
      nestedElement = self.createNestedElement( options[0] )
  
      if options[0] == 'Build':
        nestedElement = self.fillBuildElement( nestedElement, options[1] )
      elif options[0] == 'Testing':
        nestedElement = self.fillTestingElement( nestedElement, options[1] )
      elif options[0] == 'Coverage':
        nestedElement = self.fillCoverageElement( nestedElement, options[1] )
      elif options[0] == 'CoverageLog':
        nestedElement = self.fillCoverageLogElement( nestedElement, options[1] )
  
      # now attach the nested element to the site element
      siteElement.appendChild( nestedElement )
  
      # and attach the site element to the xml document
      self.__xml.appendChild( siteElement )
  
      return self.__xml.toxml()
function_tokens: def run ( self , options = None ) : # check if are running something against the build tree if len ( options ) > 2 : against_build = options [ 2 ] # create the CDash XML elements # .. the <Site> element siteElement = self . createSiteElement ( against_build ) # .. the nested element of a certain type nestedElement = self . createNestedElement ( options [ 0 ] ) if options [ 0 ] == 'Build' : nestedElement = self . fillBuildElement ( nestedElement , options [ 1 ] ) elif options [ 0 ] == 'Testing' : nestedElement = self . fillTestingElement ( nestedElement , options [ 1 ] ) elif options [ 0 ] == 'Coverage' : nestedElement = self . fillCoverageElement ( nestedElement , options [ 1 ] ) elif options [ 0 ] == 'CoverageLog' : nestedElement = self . fillCoverageLogElement ( nestedElement , options [ 1 ] ) # now attach the nested element to the site element siteElement . appendChild ( nestedElement ) # and attach the site element to the xml document self . __xml . appendChild ( siteElement ) return self . __xml . toxml ( )