Lines Matching full:result

53     result thread, and this helps to serialise the build output.
56 """Set up a new result thread
59 builder: Builder which will be sent each result
65 """Called to start up the result thread.
67 We collect the next result job and pass it on to the build.
70 result = self.builder.out_queue.get()
71 self.builder.ProcessResult(result)
130 force_build_failures: Force a bulid if the previous result showed
138 # Create a default result - it will be overwritte by the call to
140 result = command.CommandResult()
141 result.return_code = 0
153 result.already_done = os.path.exists(done_file)
155 not result.already_done)
156 if result.already_done:
160 result.return_code = int(fd.readline())
164 result.return_code = RETURN_CODE_RETRY
167 if result.return_code == RETURN_CODE_RETRY:
172 result.stderr = 'bad'
183 result.return_code = 10
184 result.stdout = ''
185 result.stderr = str(err)
238 result = self.Make(commit, brd, 'mrproper', cwd,
240 config_out += result.combined
241 result = self.Make(commit, brd, 'config', cwd,
243 config_out += result.combined
245 if result.return_code == 0:
248 result = self.Make(commit, brd, 'build', cwd, *args,
250 result.stderr = result.stderr.replace(src_dir + '/', '')
252 result.stdout = config_out + result.stdout
254 result.return_code = 1
255 result.stderr = 'No tool chain for %s\n' % brd.arch
256 result.already_done = False
258 result.toolchain = self.toolchain
259 result.brd = brd
260 result.commit_upto = commit_upto
261 result.out_dir = out_dir
262 return result, do_config
264 def _WriteResult(self, result, keep_outputs): argument
265 """Write a built result to the output directory.
268 result: CommandResult object containing result to write
273 if result.return_code < 0:
279 maybe_aborted = result.stderr and 'No child processes' in result.stderr
281 if result.already_done:
285 output_dir = self.builder._GetOutputDir(result.commit_upto)
287 build_dir = self.builder.GetBuildDir(result.commit_upto,
288 result.brd.target)
293 if result.stdout:
295 fd.write(result.stdout.decode('UTF-8').encode('ASCII', 'replace'))
297 errfile = self.builder.GetErrFile(result.commit_upto,
298 result.brd.target)
299 if result.stderr:
302 fd.write(result.stderr.decode('UTF-8').encode('ASCII', 'replace'))
306 if result.toolchain:
307 # Write the build result and toolchain information.
308 done_file = self.builder.GetDoneFile(result.commit_upto,
309 result.brd.target)
315 fd.write('%s' % result.return_code)
317 print >>fd, 'gcc', result.toolchain.gcc
318 print >>fd, 'path', result.toolchain.path
319 print >>fd, 'cross', result.toolchain.cross
320 print >>fd, 'arch', result.toolchain.arch
321 fd.write('%s' % result.return_code)
324 env = result.toolchain.MakeEnvironment(self.builder.full_path)
332 capture_stderr=True, cwd=result.out_dir,
335 nm = self.builder.GetFuncSizesFile(result.commit_upto,
336 result.brd.target, fname)
342 capture_stderr=True, cwd=result.out_dir,
346 objdump = self.builder.GetObjdumpFile(result.commit_upto,
347 result.brd.target, fname)
357 capture_stderr=True, cwd=result.out_dir,
368 capture_stderr=True, cwd=result.out_dir,
370 ubootenv = os.path.join(result.out_dir, 'uboot.env')
371 self.CopyFiles(result.out_dir, build_dir, '', ['uboot.env'])
378 sizes = self.builder.GetSizesFile(result.commit_upto,
379 result.brd.target)
385 self.CopyFiles(result.out_dir, build_dir, dirname, ['u-boot.cfg',
391 self.CopyFiles(result.out_dir, build_dir, '', ['u-boot*', '*.bin',
432 result, request_config = self.RunCommit(commit_upto, brd,
436 failed = result.return_code or result.stderr
442 result, request_config = self.RunCommit(commit_upto,
462 if (failed and not result.already_done and not did_config and
477 result.commit_upto = commit_upto
478 if result.return_code < 0:
481 # We have the build results, so output the result
482 self._WriteResult(result, job.keep_outputs)
483 self.builder.out_queue.put(result)
486 result, request_config = self.RunCommit(None, brd, work_dir, True,
489 result.commit_upto = 0
490 self._WriteResult(result, job.keep_outputs)
491 self.builder.out_queue.put(result)