From ddfde77e84cd866498c7e429bb7684e08bd1dbd4 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Mon, 31 Jan 2011 14:54:38 +0100 Subject: [PATCH] burnin: Reuse existing function for debug value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of using its own, burnin can use cli.SetGenericOpcodeOpts. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: RenΓ© Nussbaumer <rn@google.com> --- tools/burnin | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/burnin b/tools/burnin index ba515751c..61d453fa0 100755 --- a/tools/burnin +++ b/tools/burnin @@ -320,11 +320,6 @@ class Burner(object): msg, MAX_RETRIES - retry_count + 1, MAX_RETRIES, err) self.MaybeRetry(retry_count - 1, msg, fn, *args) - def _SetDebug(self, ops): - """Set the debug value on the given opcodes""" - for op in ops: - op.debug_level = self.opts.debug - def _ExecOp(self, *ops): """Execute one or more opcodes and manage the exec buffer. @@ -350,13 +345,13 @@ class Burner(object): rval = MAX_RETRIES else: rval = 0 - self._SetDebug(ops) + cli.SetGenericOpcodeOpts(ops, self.opts) return self.MaybeRetry(rval, "opcode", self._ExecOp, *ops) def ExecOrQueue(self, name, ops, post_process=None): """Execute an opcode and manage the exec buffer.""" if self.opts.parallel: - self._SetDebug(ops) + cli.SetGenericOpcodeOpts(ops, self.opts) self.queued_ops.append((ops, name, post_process)) else: val = self.ExecOp(self.queue_retry, *ops) # pylint: disable-msg=W0142 -- GitLab