Ignore:
Timestamp:
Oct 19, 2007 7:35:56 PM (14 years ago)
Author:
jpfasano
Message:

Updated checkResult to look for message suggested by Lou for Osi tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBcheckResult.py

    r638 r639  
    8181      # message found, assume test failed
    8282      retVal = 1
    83     # Stdout should contain "Coin0008I WOODW read with 0 errors" in the last few lines
    84     if not result['stdout'][-800:].find("Coin0008I WOODW read with 0 errors") :
    85       retVal = 1
    86     # Look for pattern "<solver> solved NN out of 90 and took nnn seconds"
    87     r=r'(solved \d+ out of 90 and took nnn seconds)'
    88     osisSummaryResult=re.findall(r,result['stdout'][-800:])
    89     print 'JP0'
    90     for osi in osisSummaryResult :
    91       print osi
    92                        
    93    
    94    
    95    
     83
     84    if project=='DyLP' and buildStep==NBprojectConfig.UNITTEST_CMD['Osi'] or \
     85       project=='Osi'  and buildStep==NBprojectConfig.UNITTEST_CMD['Osi'] :
     86
     87      # Look for pattern "<solver> solved NN out of 90 and took nnn.xx seconds"
     88      r=r'((.+) solved (\d+) out of 90 and took (\d*\.\d*) seconds)'
     89      osisSummaryResult=re.findall(r,result['stdout'][-800:])
     90      for osi in osisSummaryResult :
     91        if int(osi[2])<90 :
     92          #print osi[1]+" ran "+osi[2]+" out of 90 in "+osi[3]+" seconds"
     93          retVal=1
    9694
    9795  return retVal
Note: See TracChangeset for help on using the changeset viewer.