Revision e2212007 tools/burnin

b/tools/burnin
26 26
import os
27 27
import sys
28 28
import optparse
29
import time
29 30
from itertools import izip, islice, cycle
30 31
from cStringIO import StringIO
31 32

  
......
81 82

  
82 83
  def Feedback(self, msg):
83 84
    """Acumulate feedback in our buffer."""
84
    self._feed_buf.write(msg)
85
    self._feed_buf.write("\n")
85
    self._feed_buf.write("%s %s\n" % (time.ctime(msg[0]), msg[2]))
86 86
    if self.opts.verbose:
87 87
      Log(msg)
88 88

  
89 89
  def ExecOp(self, op):
90 90
    """Execute an opcode and manage the exec buffer."""
91 91
    self.ClearFeedbackBuf()
92
    return cli.SubmitOpCode(op)
92
    return cli.SubmitOpCode(op, feedback_fn=self.Feedback)
93 93

  
94 94
  def ParseOptions(self):
95 95
    """Parses the command line options.

Also available in: Unified diff