]> git.donarmstrong.com Git - lilypond.git/commitdiff
strip Processing `foo' from log file
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 29 Aug 2007 03:23:26 +0000 (00:23 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 29 Aug 2007 03:23:26 +0000 (00:23 -0300)
This removes spurious differences for test data generated in other
directories.

buildscripts/output-distance.py

index cfbd0b4b5750a6c1b0d9f571bc4bfa9c5e4aefc9..fffade13f3ef011277d4d15a67f247d131f1027f 100644 (file)
@@ -484,6 +484,11 @@ class TextFileCompareLink (FileCompareLink):
         str = '<font size="-2"><pre>%s</pre></font>' % str
         return str
 
+class LogFileCompareLink (TextFileCompareLink):
+  def get_content (self, f):
+      c = TextFileCompareLink.get_content (self, f)
+      c = re.sub ("\nProcessing `[^\n]+'\n", '', c)
+      return c
         
 class ProfileFileLink (FileCompareLink):
     def __init__ (self, f1, f2):
@@ -842,7 +847,7 @@ class ComparisonData:
             ext = os.path.splitext (f1)[1]
             klasses = {
                 '.midi': MidiFileLink,
-                '.log' : TextFileCompareLink,
+                '.log' : LogFileCompareLink,
                 '.profile': ProfileFileLink,
                 '.gittxt': GitFileCompareLink, 
                 }