X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/423e36d347a8b2d68d8ae4f26499719d11d1476f..a4463e1ce99295ad665b9e45bb911e6e9f672ebb:/gw-tests/genhtml/genhtml.py diff --git a/gw-tests/genhtml/genhtml.py b/gw-tests/genhtml/genhtml.py index 6218004..94ca00e 100755 --- a/gw-tests/genhtml/genhtml.py +++ b/gw-tests/genhtml/genhtml.py @@ -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 = "cmdline=..." % 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, "

%s

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