From 9819ba72fa4b3763ccf171a8e93f0c0f6aafc69f Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sun, 12 Dec 2010 13:43:45 +0100 Subject: [PATCH] Show also command line as a toolitip --- gw-tests/genhtml/genhtml.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) -- 2.39.2