Lines Matching full:result
50 result thread, and this helps to serialise the build output.
53 """Set up a new result thread
56 builder: Builder which will be sent each result
62 """Called to start up the result thread.
64 We collect the next result job and pass it on to the build.
67 result = self.builder.out_queue.get()
68 self.builder.ProcessResult(result)
127 force_build_failures: Force a bulid if the previous result showed
135 # Create a default result - it will be overwritte by the call to
137 result = command.CommandResult()
138 result.return_code = 0
150 result.already_done = os.path.exists(done_file)
152 not result.already_done)
153 if result.already_done:
156 result.return_code = int(fd.readline())
159 if result.return_code == RETURN_CODE_RETRY:
164 result.stderr = 'bad'
175 result.return_code = 10
176 result.stdout = ''
177 result.stderr = str(err)
227 result = self.Make(commit, brd, 'mrproper', cwd,
229 config_out += result.combined
230 result = self.Make(commit, brd, 'config', cwd,
232 config_out += result.combined
234 if result.return_code == 0:
237 result = self.Make(commit, brd, 'build', cwd, *args,
239 result.stderr = result.stderr.replace(src_dir + '/', '')
241 result.stdout = config_out + result.stdout
243 result.return_code = 1
244 result.stderr = 'No tool chain for %s\n' % brd.arch
245 result.already_done = False
247 result.toolchain = self.toolchain
248 result.brd = brd
249 result.commit_upto = commit_upto
250 result.out_dir = out_dir
251 return result, do_config
253 def _WriteResult(self, result, keep_outputs): argument
254 """Write a built result to the output directory.
257 result: CommandResult object containing result to write
262 if result.return_code < 0:
268 maybe_aborted = result.stderr and 'No child processes' in result.stderr
270 if result.already_done:
274 output_dir = self.builder._GetOutputDir(result.commit_upto)
276 build_dir = self.builder.GetBuildDir(result.commit_upto,
277 result.brd.target)
282 if result.stdout:
284 fd.write(result.stdout.decode('UTF-8').encode('ASCII', 'replace'))
286 errfile = self.builder.GetErrFile(result.commit_upto,
287 result.brd.target)
288 if result.stderr:
291 fd.write(result.stderr.decode('UTF-8').encode('ASCII', 'replace'))
295 if result.toolchain:
296 # Write the build result and toolchain information.
297 done_file = self.builder.GetDoneFile(result.commit_upto,
298 result.brd.target)
304 fd.write('%s' % result.return_code)
306 print >>fd, 'gcc', result.toolchain.gcc
307 print >>fd, 'path', result.toolchain.path
308 print >>fd, 'cross', result.toolchain.cross
309 print >>fd, 'arch', result.toolchain.arch
310 fd.write('%s' % result.return_code)
313 env = result.toolchain.MakeEnvironment(self.builder.full_path)
318 capture_stderr=True, cwd=result.out_dir,
321 nm = self.builder.GetFuncSizesFile(result.commit_upto,
322 result.brd.target, fname)
328 capture_stderr=True, cwd=result.out_dir,
332 objdump = self.builder.GetObjdumpFile(result.commit_upto,
333 result.brd.target, fname)
343 capture_stderr=True, cwd=result.out_dir,
354 sizes = self.builder.GetSizesFile(result.commit_upto,
355 result.brd.target)
361 self.CopyFiles(result.out_dir, build_dir, dirname, ['u-boot.cfg',
367 self.CopyFiles(result.out_dir, build_dir, '', ['u-boot*', '*.bin',
408 result, request_config = self.RunCommit(commit_upto, brd,
412 failed = result.return_code or result.stderr
418 result, request_config = self.RunCommit(commit_upto,
438 if (failed and not result.already_done and not did_config and
453 result.commit_upto = commit_upto
454 if result.return_code < 0:
457 # We have the build results, so output the result
458 self._WriteResult(result, job.keep_outputs)
459 self.builder.out_queue.put(result)
462 result, request_config = self.RunCommit(None, brd, work_dir, True,
465 result.commit_upto = 0
466 self._WriteResult(result, job.keep_outputs)
467 self.builder.out_queue.put(result)