sbsv2/raptor/python/raptor.py
changeset 616 24e4ef208cca
parent 590 360bd6b35136
child 625 a1925fb7753a
equal deleted inserted replaced
613:839712f5a78c 616:24e4ef208cca
   797 	def CommandLine(self, args):
   797 	def CommandLine(self, args):
   798 		# remember the arguments for the log
   798 		# remember the arguments for the log
   799 		self.args = args
   799 		self.args = args
   800 
   800 
   801 		# assuming self.CLI = "raptor_cli"
   801 		# assuming self.CLI = "raptor_cli"
   802 		more_to_do = raptor_cli.GetArgs(self, args)
   802 		if not raptor_cli.GetArgs(self, args):
   803 
   803 			self.skipAll = True		# nothing else to do
       
   804 
       
   805 	def ParseCommandLineTargets(self):
   804 		# resolve inter-argument dependencies.
   806 		# resolve inter-argument dependencies.
   805 		# --what or --check implies the WHAT target and FilterWhat Filter
   807 		# --what or --check implies the WHAT target and FilterWhat Filter
   806 		if self.doWhat or self.doCheck:
   808 		if self.doWhat or self.doCheck:
   807 			self.targets = ["WHAT"]
   809 			self.targets = ["WHAT"]
   808 			self.filterList = "filterwhat"
   810 			self.filterList = "filterwhat"
   838 				    It allows file copying to occur on the primary build host rather than on the cluster.
   840 				    It allows file copying to occur on the primary build host rather than on the cluster.
   839 				    This is more efficient.
   841 				    This is more efficient.
   840 				"""
   842 				"""
   841 				self.filterList += ",filtercopyfile"
   843 				self.filterList += ",filtercopyfile"
   842 
   844 
   843 		if not more_to_do:
       
   844 			self.skipAll = True		# nothing else to do
       
   845 
   845 
   846 	def ProcessConfig(self):
   846 	def ProcessConfig(self):
   847 		# this function will perform additional processing of config
   847 		# this function will perform additional processing of config
   848 
   848 
   849 		# create list of generic paths
   849 		# create list of generic paths
  1351 		build = Raptor()
  1351 		build = Raptor()
  1352 		build.AssertBuildOK()
  1352 		build.AssertBuildOK()
  1353 		build.ConfigFile()
  1353 		build.ConfigFile()
  1354 		build.ProcessConfig()
  1354 		build.ProcessConfig()
  1355 		build.CommandLine(argv)
  1355 		build.CommandLine(argv)
       
  1356 		build.ParseCommandLineTargets()
  1356 
  1357 
  1357 		return build
  1358 		return build
  1358 
  1359 	
       
  1360 	@classmethod
       
  1361 	def CreateCommandlineAnalysis(cls, argv):
       
  1362 		""" Perform an analysis run where a build is not performed. """
       
  1363 		build = Raptor()
       
  1364 		build.AssertBuildOK()
       
  1365 		build.ConfigFile()
       
  1366 		build.ProcessConfig()
       
  1367 		build.CommandLine(argv)
       
  1368 		# Don't parse command line targets - they don't make any sense if you're not doing a build
       
  1369 
       
  1370 		return build
  1359 
  1371 
  1360 
  1372 
  1361 # Class for passing constricted parameters to filters
  1373 # Class for passing constricted parameters to filters
  1362 class BuildStats(object):
  1374 class BuildStats(object):
  1363 
  1375