Lines Matching refs:dut
21 """Working thread for a dut."""
23 def __init__(self, dut, sched):
24 super(DutWorker, self).__init__(name='DutWorker-{}'.format(dut.name))
25 self._dut = dut
62 # Secondly, handle benchmarkruns that needs to be run on dut.
74 'for dut, stopping working '
78 # Reimage to run other br fails, dut is doomed, stop
80 self._logger.LogWarning('Re-image failed, dut '
96 label: the label to remimage onto dut.
149 """Try to match dut image with a certain experiment label.
168 "Dut '{}' is pre-installed with '{}'".format(self._dut.name, l))
176 return 'DutWorker[dut="{}", label="{}"]'.format(
179 def dut(self):
254 # Create worker thread, 1 per dut.
255 self._active_workers = [DutWorker(dut, self) for dut in self._duts]
262 """Start all dut worker threads and return immediately."""
347 def get_benchmark_run(self, dut):
348 """Get a benchmark_run (br) object for a certain dut.
351 dut: the dut for which a br is returned.
354 A br with its label matching that of the dut. If no such br could be
356 dut).
363 # If dut bears an unrecognized label, return None.
364 if dut.label is None:
367 # If br list for the dut's label is empty (that means all brs for this
369 with self.lock_on(dut.label):
370 brl = self._label_brl_map[dut.label]
376 def allocate_label(self, dut):
377 """Allocate a label to a dut.
381 The dut_worker calling this method is responsible for reimage the dut to
385 dut: the new label that is to be reimaged onto the dut.
394 return self._mim.allocate(dut, self)
425 """Report the dut worker threads status."""