Revision ddfde77e tools/burnin
b/tools/burnin | ||
---|---|---|
320 | 320 |
msg, MAX_RETRIES - retry_count + 1, MAX_RETRIES, err) |
321 | 321 |
self.MaybeRetry(retry_count - 1, msg, fn, *args) |
322 | 322 |
|
323 |
def _SetDebug(self, ops): |
|
324 |
"""Set the debug value on the given opcodes""" |
|
325 |
for op in ops: |
|
326 |
op.debug_level = self.opts.debug |
|
327 |
|
|
328 | 323 |
def _ExecOp(self, *ops): |
329 | 324 |
"""Execute one or more opcodes and manage the exec buffer. |
330 | 325 |
|
... | ... | |
350 | 345 |
rval = MAX_RETRIES |
351 | 346 |
else: |
352 | 347 |
rval = 0 |
353 |
self._SetDebug(ops)
|
|
348 |
cli.SetGenericOpcodeOpts(ops, self.opts)
|
|
354 | 349 |
return self.MaybeRetry(rval, "opcode", self._ExecOp, *ops) |
355 | 350 |
|
356 | 351 |
def ExecOrQueue(self, name, ops, post_process=None): |
357 | 352 |
"""Execute an opcode and manage the exec buffer.""" |
358 | 353 |
if self.opts.parallel: |
359 |
self._SetDebug(ops)
|
|
354 |
cli.SetGenericOpcodeOpts(ops, self.opts)
|
|
360 | 355 |
self.queued_ops.append((ops, name, post_process)) |
361 | 356 |
else: |
362 | 357 |
val = self.ExecOp(self.queue_retry, *ops) # pylint: disable-msg=W0142 |
Also available in: Unified diff