parameters: (self, outputStats)
docstring: output test results in plain text
docstring_summary: output test results in plain text
docstring_tokens: output test results in plain text
function: def outputPlainText(self, outputStats):
          '''output test results in plain text'''
          print 'Dataflash log analysis report for file: ' + self.logfile
          print 'Log size: %.2fmb (%d lines)' % (self.logdata.filesizeKB / 1024.0, self.logdata.lineCount)
          print 'Log duration: %s' % str(datetime.timedelta(seconds=self.logdata.durationSecs)) + '\n'
  
          if self.logdata.vehicleType == "ArduCopter" and self.logdata.getCopterType():
              print 'Vehicle Type: %s (%s)' % (self.logdata.vehicleType, self.logdata.getCopterType())
          else:
              print 'Vehicle Type: %s' % self.logdata.vehicleType
          print 'Firmware Version: %s (%s)' % (self.logdata.firmwareVersion, self.logdata.firmwareHash)
          print 'Hardware: %s' % self.logdata.hardwareType
          print 'Free RAM: %s' % self.logdata.freeRAM
          if self.logdata.skippedLines:
              print "\nWARNING: %d malformed log lines skipped during read" % self.logdata.skippedLines
          print '\n'
  
          print "Test Results:"
          for test in self.tests:
              if not test.enable:
                  continue
              statusMessageFirstLine = test.result.statusMessage.strip('\n\r').split('\n')[0]
              statusMessageExtra     = test.result.statusMessage.strip('\n\r').split('\n')[1:]
              execTime = ""
              if outputStats:
                  execTime = "  (%6.2fms)" % (test.execTime)
              if test.result.status == TestResult.StatusType.GOOD:
                  print "  %20s:  GOOD       %-55s%s" % (test.name, statusMessageFirstLine, execTime)
              elif test.result.status == TestResult.StatusType.FAIL:
                  print "  %20s:  FAIL       %-55s%s    [GRAPH]" % (test.name, statusMessageFirstLine, execTime)
              elif test.result.status == TestResult.StatusType.WARN:
                  print "  %20s:  WARN       %-55s%s    [GRAPH]" % (test.name, statusMessageFirstLine, execTime)
              elif test.result.status == TestResult.StatusType.NA:
                  # skip any that aren't relevant for this vehicle/hardware/etc
                  continue
              else:
                  print "  %20s:  UNKNOWN    %-55s%s" % (test.name, statusMessageFirstLine, execTime)
              #if statusMessageExtra:
              for line in statusMessageExtra:
                  print "  %29s     %s" % ("",line)
  
          print '\n'
          print 'The Log Analyzer is currently BETA code.\nFor any support or feedback on the log analyzer please email Andrew Chapman (amchapman@gmail.com)'
          print '\n'
function_tokens: def outputPlainText ( self , outputStats ) : print 'Dataflash log analysis report for file: ' + self . logfile print 'Log size: %.2fmb (%d lines)' % ( self . logdata . filesizeKB / 1024.0 , self . logdata . lineCount ) print 'Log duration: %s' % str ( datetime . timedelta ( seconds = self . logdata . durationSecs ) ) + '\n' if self . logdata . vehicleType == "ArduCopter" and self . logdata . getCopterType ( ) : print 'Vehicle Type: %s (%s)' % ( self . logdata . vehicleType , self . logdata . getCopterType ( ) ) else : print 'Vehicle Type: %s' % self . logdata . vehicleType print 'Firmware Version: %s (%s)' % ( self . logdata . firmwareVersion , self . logdata . firmwareHash ) print 'Hardware: %s' % self . logdata . hardwareType print 'Free RAM: %s' % self . logdata . freeRAM if self . logdata . skippedLines : print "\nWARNING: %d malformed log lines skipped during read" % self . logdata . skippedLines print '\n' print "Test Results:" for test in self . tests : if not test . enable : continue statusMessageFirstLine = test . result . statusMessage . strip ( '\n\r' ) . split ( '\n' ) [ 0 ] statusMessageExtra = test . result . statusMessage . strip ( '\n\r' ) . split ( '\n' ) [ 1 : ] execTime = "" if outputStats : execTime = "  (%6.2fms)" % ( test . execTime ) if test . result . status == TestResult . StatusType . GOOD : print "  %20s:  GOOD       %-55s%s" % ( test . name , statusMessageFirstLine , execTime ) elif test . result . status == TestResult . StatusType . FAIL : print "  %20s:  FAIL       %-55s%s    [GRAPH]" % ( test . name , statusMessageFirstLine , execTime ) elif test . result . status == TestResult . StatusType . WARN : print "  %20s:  WARN       %-55s%s    [GRAPH]" % ( test . name , statusMessageFirstLine , execTime ) elif test . result . status == TestResult . StatusType . NA : # skip any that aren't relevant for this vehicle/hardware/etc continue else : print "  %20s:  UNKNOWN    %-55s%s" % ( test . name , statusMessageFirstLine , execTime ) #if statusMessageExtra: for line in statusMessageExtra : print "  %29s     %s" % ( "" , line ) print '\n' print 'The Log Analyzer is currently BETA code.\nFor any support or feedback on the log analyzer please email Andrew Chapman (amchapman@gmail.com)' print '\n'