Changeset 638 for branches/testScripts


Ignore:
Timestamp:
Oct 19, 2007 6:49:29 AM (12 years ago)
Author:
jpfasano
Message:

Working on Lou's suggestion on testing success from Osi. This commit is mostly to move code from windows to linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBcheckResult.py

    r633 r638  
    7474    # Messages should not contain:
    7575    # "*** xxxSolverInterface testing issue: whatever the problem is"
    76     print "jp0"
    7776    reexp=r'.*\*\*.+SolverInterface testing issue:.*'
    7877    if re.compile(reexp).match(result['stderr'],1) :
    7978      # message found, assume test failed
    80       print "jp1"
    8179      retVal = 1
    8280    if re.compile(reexp).match(result['stdout'],1) :
    8381      # message found, assume test failed
    84       print "jp2"
    8582      retVal = 1
    8683    # Stdout should contain "Coin0008I WOODW read with 0 errors" in the last few lines
    8784    if not result['stdout'][-800:].find("Coin0008I WOODW read with 0 errors") :
    88       print "jp3"
    8985      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   
    9096
    9197  return retVal
Note: See TracChangeset for help on using the changeset viewer.