Lines Matching refs:result
78 result = self.builder.out_queue.get()
79 self.builder.ProcessResult(result)
151 result = command.CommandResult()
152 result.return_code = 0
164 result.already_done = os.path.exists(done_file)
166 not result.already_done)
167 if result.already_done:
171 result.return_code = int(fd.readline())
175 result.return_code = RETURN_CODE_RETRY
178 if result.return_code == RETURN_CODE_RETRY:
183 result.stderr = 'bad'
194 result.return_code = 10
195 result.stdout = ''
196 result.stderr = str(err)
260 result = self.Make(commit, brd, 'mrproper', cwd,
262 config_out += result.combined
263 result = self.Make(commit, brd, 'config', cwd,
265 config_out += result.combined
267 if result.return_code == 0:
270 result = self.Make(commit, brd, 'build', cwd, *args,
272 result.stderr = result.stderr.replace(src_dir + '/', '')
274 result.stdout = config_out + result.stdout
276 result.return_code = 1
277 result.stderr = 'No tool chain for %s\n' % brd.arch
278 result.already_done = False
280 result.toolchain = self.toolchain
281 result.brd = brd
282 result.commit_upto = commit_upto
283 result.out_dir = out_dir
284 return result, do_config
286 def _WriteResult(self, result, keep_outputs, work_in_output): argument
297 if result.return_code < 0:
303 maybe_aborted = result.stderr and 'No child processes' in result.stderr
305 if result.already_done:
309 output_dir = self.builder._GetOutputDir(result.commit_upto)
311 build_dir = self.builder.GetBuildDir(result.commit_upto,
312 result.brd.target)
317 if result.stdout:
318 fd.write(result.stdout)
320 errfile = self.builder.GetErrFile(result.commit_upto,
321 result.brd.target)
322 if result.stderr:
324 fd.write(result.stderr)
328 if result.toolchain:
330 done_file = self.builder.GetDoneFile(result.commit_upto,
331 result.brd.target)
337 fd.write('%s' % result.return_code)
339 print('gcc', result.toolchain.gcc, file=fd)
340 print('path', result.toolchain.path, file=fd)
341 print('cross', result.toolchain.cross, file=fd)
342 print('arch', result.toolchain.arch, file=fd)
343 fd.write('%s' % result.return_code)
346 env = result.toolchain.MakeEnvironment(self.builder.full_path)
354 capture_stderr=True, cwd=result.out_dir,
357 nm = self.builder.GetFuncSizesFile(result.commit_upto,
358 result.brd.target, fname)
364 capture_stderr=True, cwd=result.out_dir,
368 objdump = self.builder.GetObjdumpFile(result.commit_upto,
369 result.brd.target, fname)
379 capture_stderr=True, cwd=result.out_dir,
390 capture_stderr=True, cwd=result.out_dir,
392 ubootenv = os.path.join(result.out_dir, 'uboot.env')
394 self.CopyFiles(result.out_dir, build_dir, '', ['uboot.env'])
401 sizes = self.builder.GetSizesFile(result.commit_upto,
402 result.brd.target)
410 result.out_dir, build_dir, dirname,
418 result.out_dir, build_dir, '',
462 result, request_config = self.RunCommit(commit_upto, brd,
467 failed = result.return_code or result.stderr
473 result, request_config = self.RunCommit(commit_upto,
494 if (failed and not result.already_done and not did_config and
509 result.commit_upto = commit_upto
510 if result.return_code < 0:
514 self._WriteResult(result, job.keep_outputs, job.work_in_output)
516 self.builder.out_queue.put(result)
518 self.builder.ProcessResult(result)
521 result, request_config = self.RunCommit(None, brd, work_dir, True,
525 result.commit_upto = 0
526 self._WriteResult(result, job.keep_outputs, job.work_in_output)
528 self.builder.out_queue.put(result)
530 self.builder.ProcessResult(result)