Changeset 760 for branches


Ignore:
Timestamp:
Nov 12, 2007 9:50:16 AM (12 years ago)
Author:
jpfasano
Message:

Added a check to make sure the test directory exists to avoid a crash if NBprojectConfig is coded incorrectly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBbuildConfig.py

    r758 r760  
    357357      testRelDir=configuration['test'][t]['dir']
    358358      testDir = os.path.join(fullBuildDir,testRelDir)
     359      testCmd=configuration['test'][t]['cmd']
     360      if not os.path.isdir(testDir) :
     361        NBlogMessages.writeMessage('  Directory to run test from does not exist:')
     362        NBlogMessages.writeMessage('    Intended directory: '+testDir)
     363        NBlogMessages.writeMessage('    Intended command: '+testCmd)
     364        continue
    359365      os.chdir(testDir)
    360366      NBlogMessages.writeMessage('  cd '+testDir)
    361 
    362       testCmd=configuration['test'][t]['cmd']
    363367
    364368      NBlogMessages.writeMessage( '  '+testCmd )
Note: See TracChangeset for help on using the changeset viewer.