Lines Matching full:machine

47     self.machine = None
66 # Just use the first machine for running the cached version,
71 self.profiler_args, self.machine_manager, self.machine,
97 self._logger, self.log_level, self.label, self.machine, output, err,
103 # Try to acquire a machine now.
104 self.machine = self.AcquireMachine()
105 self.cache.machine = self.machine
106 self.result = self.RunTest(self.machine)
108 self.cache.remote = self.machine.name
110 self.machine)
114 if self.machine:
116 self.machine)
138 # In schedv2 mode, we do not lock machine locally. So noop here.
140 elif self.machine:
141 if not self.machine.IsReachable():
143 'Machine %s is not reachable, removing it.' % self.machine.name)
144 self.machine_manager.RemoveMachine(self.machine.name)
145 self._logger.LogOutput('Releasing machine: %s' % self.machine.name)
146 self.machine_manager.ReleaseMachine(self.machine)
147 self._logger.LogOutput('Released machine: %s' % self.machine.name)
158 # No need to lock machine locally, DutWorker, which is a thread, is
162 machine = None
164 raise RuntimeError('Thread terminated while trying to acquire machine.')
166 machine = self.machine_manager.AcquireMachine(self.label)
168 if machine:
169 self._logger.LogOutput('%s: Machine %s acquired at %s' %
170 (self.name, machine.name,
174 return machine
199 def RunTest(self, machine): argument
202 # In schedv2 mode, do not even call ImageMachine. Machine image is
206 self.machine_manager.ImageMachine(machine, self.label)
208 retval, out, err = self.suite_runner.Run(machine.name, self.label,
213 self.machine, out, err, retval,
238 # Just use the first machine for running the cached version,
243 self.profiler_args, self.machine_manager, self.machine,
252 def RunTest(self, machine): argument
255 self.machine_manager.ImageMachine(machine, self.label)
258 err] = self.suite_runner.Run(machine.name, self.label, self.benchmark,
261 rr = MockResult('logger', self.label, self.log_level, machine)