( self, options=None )
return self.__xml.toxml()
options
      [type, log]
options
      [type, log]
options [ type log ]
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()
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 ( )