Lines Matching full:broken
76 # "broken".
79 # _BROKEN - A value that counts as "broken" for the lab_inventory
85 status_history.BROKEN,
118 def _check_counts(self, working, broken, idle):
123 sum of working and broken devices.
126 @param broken The expected total of broken devices.
130 self.assertEqual(self._pool_counts.get_broken(), broken)
133 working + broken + idle)
142 """Test counting for status: BROKEN."""
156 """Test counts after adding a working and then a broken DUT."""
164 """Test counts after adding a broken and then a working DUT."""
193 def _check_all_counts(self, working, broken):
199 broken devices.
206 @param broken The expected total of broken devices.
210 self.assertEqual(self._board_counts.get_broken(), broken)
212 working + broken)
221 self.assertEqual(count_broken, broken)
222 self.assertEqual(count_total, working + broken)
225 def _check_pool_counts(self, pool, working, broken):
230 `get_total()` is the sum of working and broken devices.
234 @param broken The expected total of broken devices.
240 broken)
242 working + broken)
253 """Test counts after adding a working and then a broken DUT.
255 For each pool, add first a working, then a broken DUT. After
260 broken = 0
265 self._check_all_counts(working, broken)
267 broken += 1
269 self._check_all_counts(working, broken)
273 """Test counts after adding a broken and then a working DUT.
275 For each pool, add first a broken, then a working DUT. After
280 broken = 0
283 broken += 1
285 self._check_all_counts(working, broken)
289 self._check_all_counts(working, broken)
471 `critbad` is a number of broken DUTs in one critical pool.
473 `sparebad` is a number of broken DUTs in one critical pool.
544 * The counts of working and broken devices for each
905 `badcount` is the number of broken DUTs in the pool.