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)))
#pprint.pprint(self.channels[groupName]) # TEMP!!!
# 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):
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))
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)-1, len(self.formats[groupName].labels))
if ignoreBadlines:
print errorMsg + " (skipping line)"
continue

View File

@ -119,8 +119,11 @@ class TestSuite:
if test.result.extraFeedback:
for line in test.result.extraFeedback.strip().split('\n'):
print " %20s %s" % ("",line)
print '\n'
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'
def outputXML(self, xmlFile):
# open the file for writing
xml = None