Lines Matching refs:work_dir
56 def __init__( self, desc, work_dir, source_dir ):
58 self.work_dir = work_dir
60 self.cmake_log_path = os.path.join( work_dir, 'batchbuild_cmake.log' )
61 self.build_log_path = os.path.join( work_dir, 'batchbuild_build.log' )
82 cmd = ['cmake', '--build', self.work_dir]
90 process = subprocess.Popen( cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, cwd=self.work_dir,
100 if os.path.isdir( self.work_dir ):
101 print(' Removing work directory', self.work_dir)
102 shutil.rmtree( self.work_dir, ignore_errors=True )
103 if not os.path.isdir( self.work_dir ):
104 os.makedirs( self.work_dir )
234 usage = r"""%prog WORK_DIR SOURCE_DIR CONFIG_JSON_PATH [CONFIG2_JSON_PATH...]
236 as described in CONFIG_JSON_PATH building in WORK_DIR.
249 parser.error( "Missing one of WORK_DIR SOURCE_DIR CONFIG_JSON_PATH." )
250 work_dir = args[0]
264 if not os.path.isdir( work_dir ):
265 os.makedirs( work_dir )
267 with open( os.path.join( work_dir, 'matrix-dir-map.txt' ), 'wt' ) as fmatrixmap:
269 build_desc_work_dir = os.path.join( work_dir, '%03d' % (index+1) )
274 html_report_path = os.path.join( work_dir, 'batchbuild-report.html' )