Changeset 644 for branches/testScripts


Ignore:
Timestamp:
Oct 21, 2007 9:03:32 AM (12 years ago)
Author:
jpfasano
Message:

Started moving code from nightlyBuildMod.py to nightlyBuild.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/nightlyBuild.py

    r642 r644  
    33import os
    44import sys
     5import distutils.dir_util
    56
    67import NBuserConfig
     
    9394  #---------------------------------------------------------------------
    9495
    95 
    96   #---------------------------------------------------------------------
    97   # Run configure part of buid
    98   #---------------------------------------------------------------------
    99   os.chdir(projectCheckOutDir)
    100   configCmd = os.path.join('.','configure -C')
     96 
     97  #---------------------------------------------------------------------
     98  # Setup the directory where the build will be done
     99  #---------------------------------------------------------------------
     100  vpathDir = 'defaultBuild'
     101  fullVpathDir = os.path.join(projectBaseDir,vpathDir)
     102  #TODO: if (MAKE_CLEAN) : distutils.dir_util.remove_tree(fullVpathDir)
     103  if not os.path.isdir(fullVpathDir) : os.mkdir(fullVpathDir)
     104  print fullVpathDir
     105
     106  #---------------------------------------------------------------------
     107  # Run configure part of build (only if config has not previously
     108  # ran successfully).
     109  #---------------------------------------------------------------------
     110  os.chdir(fullVpathDir)
     111  #configCmd = os.path.join('.','configure -C')
     112  configCmd = os.path.join('.',projectCheckOutDir,"configure -C")
     113  print configCmd
    101114  if NBcheckResult.didConfigRunOK() :
    102115    NBlogMessages.writeMessage("  '"+configCmd+"' previously ran. Not rerunning")
     
    146159  #---------------------------------------------------------------------
    147160  if NBprojectConfig.UNITTEST_CMD.has_key(p) :
    148     unitTestPath = os.path.join(projectCheckOutDir,NBprojectConfig.UNITTEST_DIR[p])
     161    unitTestPath = os.path.join(fullVpathDir,NBprojectConfig.UNITTEST_DIR[p])
    149162    os.chdir(unitTestPath)
     163    print unitTestPath
    150164
    151165    unitTestCmdTemplate=NBprojectConfig.UNITTEST_CMD[p]
Note: See TracChangeset for help on using the changeset viewer.