]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
Show also command line as a toolitip
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Dec 2010 12:43:45 +0000 (13:43 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Sun, 12 Dec 2010 12:43:45 +0000 (13:43 +0100)
gw-tests/genhtml/genhtml.py

index 6218004de8275829b7ddf79a64d0e814022d2948..b75bdc4f87d09962fae7a0e9b4645faad92f87a6 100755 (executable)
@@ -164,12 +164,16 @@ 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:
+                    print l
+                    l = "<abbr title=%s>cmdline=...</abbr>" % str(l[8:])
+                    print l
                 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)