Changeset 9285:f9fd8a7be342 in orange


Ignore:
Timestamp:
11/29/11 13:23:48 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
938c3a877838457fee04d3b6977879be4a44fe59
Message:

Changed report-html, now reports the changed output, original output and test script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testing/regressionTests/xtest.py

    r9280 r9285  
    8989            for name, lastResult in test_set: 
    9090                if lastResult =="OK": 
    91                     print '  <tr><td><a href="results/%s/%s/%s.txt">%s</a></td><td>%s</td></tr>' % (module, dirname, name, name, lastResult) 
    92                 else:             
    93                     print '  <tr><td><a href="results/%s/%s/%s.%s.%s.%s.txt">%s</a></td><td>%s</td></tr>' % (module, dirname, name, platform, pyversion, lastResult, name, lastResult) 
     91                    result = "results/%s/%s/%s.txt" % (module, dirname, name) 
     92                    print '''  <tr><td><a href="http://orange.biolab.si/trac/browser/trunk/orange/doc/%(dir)s/%(name)s">%(name)s</a></td> 
     93    <td><a href="%(result)s">%(lastResult)s</a></td> 
     94  </tr>''' % {"dir":dir, "name":name, "lastResult":lastResult, "result":result} 
     95     
     96#                    print '  <tr><td><a href="results/%s/%s/%s.txt">%s</a></td><td>%s</td></tr>' % (module, dirname, name, name, lastResult) 
     97                elif lastResult in ["changed", "crash", "random"]: 
     98#                else: 
     99                    if lastResult == "random": 
     100                        result = "results/%s/%s/%s.%s.%s.%s.txt" % (module, dirname, name, platform, pyversion, lastResult+"1") 
     101                    else: 
     102                        result = "results/%s/%s/%s.%s.%s.%s.txt" % (module, dirname, name, platform, pyversion, lastResult) 
     103                    original = "results/%s/%s/%s.txt" % (module, dirname, name) 
     104                    print '''  <tr><td><a href="http://orange.biolab.si/trac/browser/trunk/orange/doc/%(dir)s/%(name)s">%(name)s</a> 
     105    </td><td><a href="%(result)s">%(lastResult)s</a></td> 
     106    <td><a href="%(original)s">original</a></td> 
     107  </tr>''' %  {"dir":dir, "name":name, "lastResult":lastResult, "result":result, "original":original} 
     108   
    94109            print "</table>" 
    95110        elif just_print: 
     
    179194    elif module == "obi": 
    180195        root = orngEnviron.addOnsDirSys + "/Bioinformatics/doc" 
     196        dirs = [("modules", "modules")] 
    181197    elif module == "text": 
    182198        root = orngEnviron.addOnsDirSys + "/Text/doc" 
     199        dirs = [("modules", "modules")] 
    183200    else: 
    184201        print "Error: %s is wrong name of the module, should be in [orange|obi|text]" % module 
Note: See TracChangeset for help on using the changeset viewer.