Esempio n. 1
0
 def _watch_proc(self, quiet, stop_after):
     assert self._proc is not None
     output = op_util.RunOutput(self._run, self._proc, quiet,
                                self._output_scalars_summary())
     if stop_after is None:
         exit_status = self._proc.wait()
     else:
         exit_status = op_util.wait_for_proc(self._proc, stop_after)
     output.wait_and_close()
     return exit_status
Esempio n. 2
0
 def __enter__(self):
     self._output = op_util.RunOutput(self._run, self._quiet, self._output_summary)
     self._output.open(self._proc)
Esempio n. 3
0
 def __enter__(self):
     if os.getenv("NO_RUN_OUTPUT_CAPTURE") != "1":
         self._output = op_util.RunOutput(self._run, *self._rest_init_args)