예제 #1
0
파일: job.py 프로젝트: wenhann/chromiumos
 def _runtest(self, url, tag, args, dargs):
     try:
         l = lambda : test.runtest(self, url, tag, args, dargs)
         pid = parallel.fork_start(self.resultdir, l)
         parallel.fork_waitfor(self.resultdir, pid)
     except error.TestBaseException:
         # These are already classified with an error type (exit_status)
         raise
     except error.JobError:
         raise  # Caught further up and turned into an ABORT.
     except Exception, e:
         # Converts all other exceptions thrown by the test regardless
         # of phase into a TestError(TestBaseException) subclass that
         # reports them with their full stack trace.
         raise error.UnhandledTestError(e)
예제 #2
0
    def _runtest(self, url, tag, timeout, args, dargs):
        try:
            l = lambda: test.runtest(self, url, tag, args, dargs)
            pid = parallel.fork_start(self.resultdir, l)

            self._forkwait(pid, timeout)

        except error.TestBaseException:
            # These are already classified with an error type (exit_status)
            raise
        except error.JobError:
            raise  # Caught further up and turned into an ABORT.
        except Exception, e:
            # Converts all other exceptions thrown by the test regardless
            # of phase into a TestError(TestBaseException) subclass that
            # reports them with their full stack trace.
            raise error.UnhandledTestError(e)