예제 #1
0
 def getSomething(self, somethingR, outputdir, build):
     result = []
     f = open( os.path.join(outputdir, jbuild.logname(build)), 'r' )
     for l in f.readlines():
         if somethingR.search(l):
             result.append(l)
     return result
예제 #2
0
def compilation(bresults):
    r = ""
    
    r += """
    <h2> Compilation </h2>
    <table>
    <tr>  <th>Build</th>   <th>Errors</th>  <th>Warnings</th> <th>Log file</th></tr>
    """
    
    for b,cur in bresults.builds:
        log = jbuild.logname(b)
        e,w,p = cur
        r += """
        <tr>
        <th>%s</th>
        <td>%d</td>
        <td>%d</td>
        <td><a href=\"%s\">%s</a></td>
        </tr>
        """ % ( b, e, w, log, log )
    r += "</table>"
    return r