LogAnalyzer: added BETA feedback info to output

This commit is contained in:
Andrew Chapman 2014-02-22 20:52:53 +01:00 committed by Andrew Tridgell
parent c4828e1d3d
commit d6b091c39f
2 changed files with 6 additions and 3 deletions

View File

@ -275,8 +275,8 @@ class DataflashLog:
#print "Channel definition for group %s, data at address %s" % (groupName, hex(id(self.channels[groupName][label].dictData))) #print "Channel definition for group %s, data at address %s" % (groupName, hex(id(self.channels[groupName][label].dictData)))
#pprint.pprint(self.channels[groupName]) # TEMP!!! #pprint.pprint(self.channels[groupName]) # TEMP!!!
# check the number of tokens matches between the line and what we're expecting from the FMT definition # check the number of tokens matches between the line and what we're expecting from the FMT definition
if len(tokens2) != (len(self.formats[groupName].labels) + 1): if (len(tokens2)-1) != len(self.formats[groupName].labels):
errorMsg = "Error on line %d of log file: %s, %s line's value count (%d) not matching FMT specification (%d)" % (lineNumber, self.filename, groupName, len(tokens2), len(self.formats[groupName].labels)) errorMsg = "Error on line %d of log file: %s, %s line's value count (%d) not matching FMT specification (%d)" % (lineNumber, self.filename, groupName, len(tokens2)-1, len(self.formats[groupName].labels))
if ignoreBadlines: if ignoreBadlines:
print errorMsg + " (skipping line)" print errorMsg + " (skipping line)"
continue continue

View File

@ -119,6 +119,9 @@ class TestSuite:
if test.result.extraFeedback: if test.result.extraFeedback:
for line in test.result.extraFeedback.strip().split('\n'): for line in test.result.extraFeedback.strip().split('\n'):
print " %20s %s" % ("",line) print " %20s %s" % ("",line)
print '\n'
print 'The Log Analyzer is currently BETA code. For any support or feedback on the log analyzer please email Andrew Chapman (amchapman@gmail.com)'
print '\n' print '\n'
def outputXML(self, xmlFile): def outputXML(self, xmlFile):