From: Michal Sojka Date: Sun, 12 Dec 2010 12:43:45 +0000 (+0100) Subject: Show also command line as a toolitip X-Git-Tag: fix-allnoconfig~216 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/9819ba72fa4b3763ccf171a8e93f0c0f6aafc69f?ds=sidebyside Show also command line as a toolitip --- diff --git a/gw-tests/genhtml/genhtml.py b/gw-tests/genhtml/genhtml.py index 6218004..b75bdc4 100755 --- a/gw-tests/genhtml/genhtml.py +++ b/gw-tests/genhtml/genhtml.py @@ -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 = "cmdline=..." % 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, "

%s

%s" % (i, "
".join(lines)) print >>html, "" os.chdir(cwd)