]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/genhtml/genhtml.py
Remove debug prints
[can-benchmark.git] / gw-tests / genhtml / genhtml.py
index 6218004de8275829b7ddf79a64d0e814022d2948..94ca00ef4f09ebf5c39b2b1136f5d81d98f949a5 100755 (executable)
@@ -164,12 +164,14 @@ class Test(object):
         stats.sort()
         for i in stats:
             lines = open(i).readlines()
-            def stripComment(l):
+            def fixupLine(l):
                 comment = l.find("#")
                 if comment >= 0:
                     l = l[:comment-1]
+                if l.find("cmdline=") == 0:
+                    l = "<abbr title=%s>cmdline=...</abbr>" % str(l[8:])
                 return l
-            lines = [stripComment(l) for l in lines if l.find("cmdline=") != 0]
+            lines = [fixupLine(l) for l in lines]
             print >>html, "<td><h4>%s</h4>%s</td>" % (i, "<br />".join(lines))
         print >>html, "</tr></table>"
         os.chdir(cwd)