sbsv2/raptor/python/raptor_make.py
branchwip
changeset 118 375b7128e900
parent 29 ee00c00df073
child 121 5e5ae3e212b3
equal deleted inserted replaced
108:7136693697ed 118:375b7128e900
   468 					makeenv['TALON_RECIPEATTRIBUTES']="none"
   468 					makeenv['TALON_RECIPEATTRIBUTES']="none"
   469 					makeenv['TALON_SHELL']=self.talonshell
   469 					makeenv['TALON_SHELL']=self.talonshell
   470 					makeenv['TALON_BUILDID']=str(self.buildID)
   470 					makeenv['TALON_BUILDID']=str(self.buildID)
   471 					makeenv['TALON_TIMEOUT']=str(self.talontimeout)
   471 					makeenv['TALON_TIMEOUT']=str(self.talontimeout)
   472 				if self.raptor.filesystem == "unix":
   472 				if self.raptor.filesystem == "unix":
   473 					p = subprocess.Popen(command, bufsize=65535,
   473 					p = subprocess.Popen([command], bufsize=65535,
   474 									     stdout=subprocess.PIPE,
   474 						stdout=subprocess.PIPE,
   475 									     stderr=subprocess.STDOUT,
   475 						stderr=subprocess.STDOUT,
   476 									     close_fds=True, env=makeenv, shell=True)
   476 						close_fds=True, env=makeenv, shell=True)
   477 				else:
   477 				else:
   478 					p = subprocess.Popen(command, bufsize=65535,
   478 					p = subprocess.Popen(args = 
   479 									     stdout=subprocess.PIPE,
   479 						[raptor_data.ToolSet.shell, '-c', command, '2>' + makefile+'.stderr'],
   480 									     stderr=subprocess.STDOUT,
   480 						bufsize=65535,
   481 									     universal_newlines=True, env=makeenv)
   481 						stdout=subprocess.PIPE,
       
   482 						stderr=subprocess.STDOUT,
       
   483 						shell = False,
       
   484 						universal_newlines=True, env=makeenv)
   482 				stream = p.stdout
   485 				stream = p.stdout
   483 
   486 
   484 
   487 
   485 				line = " "
   488 				line = " "
   486 				while line:
   489 				while line: