Revision 265e6244 tools/burnin

b/tools/burnin
117 117
                 default=128, type="unit", metavar="<size>",
118 118
                 completion_suggest=("128M 256M 512M 1G 4G 8G"
119 119
                                     " 12G 16G").split()),
120
  cli.DEBUG_OPT,
120 121
  cli.VERBOSE_OPT,
121 122
  cli.NOIPCHECK_OPT,
122 123
  cli.NONAMECHECK_OPT,
......
305 306
            (msg, MAX_RETRIES - retry_count + 1, MAX_RETRIES, err))
306 307
        self.MaybeRetry(retry_count - 1, msg, fn, *args)
307 308

  
309
  def _SetDebug(self, ops):
310
    """Set the debug value on the given opcodes"""
311
    for op in ops:
312
      op.debug_level = self.opts.debug
313

  
308 314
  def _ExecOp(self, *ops):
309 315
    """Execute one or more opcodes and manage the exec buffer.
310 316

  
......
330 336
      rval = MAX_RETRIES
331 337
    else:
332 338
      rval = 0
339
    self._SetDebug(ops)
333 340
    return self.MaybeRetry(rval, "opcode", self._ExecOp, *ops)
334 341

  
335 342
  def ExecOrQueue(self, name, *ops):
336 343
    """Execute an opcode and manage the exec buffer."""
337 344
    if self.opts.parallel:
345
      self._SetDebug(ops)
338 346
      self.queued_ops.append((ops, name))
339 347
    else:
340 348
      return self.ExecOp(self.queue_retry, *ops)

Also available in: Unified diff