Fixed build with gcc compiler; couple minor improvements in perf testing framework

This commit is contained in:
Andrey Kamaev
2011-12-16 04:42:34 +00:00
parent 6ee1f6f66e
commit 0744092b21
3 changed files with 5 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ def getSetName(tset, idx, columns, short = True):
return prefix
name = tset[0].replace(".xml","").replace("_", "\n")
if prefix:
return prefix + "\n" + ("-"*int(len(prefix)*1.7)) + "\n" + name
return prefix + "\n" + ("-"*int(len(max(prefix.split("\n"), key=len))*1.5)) + "\n" + name
return name
if __name__ == "__main__":
@@ -43,7 +43,7 @@ if __name__ == "__main__":
options.calc_relatives = False
options.calc_cr = False
if options.columns:
options.columns = [s.strip() for s in options.columns.split(",")]
options.columns = [s.strip().replace("\\n", "\n") for s in options.columns.split(",")]
# expand wildcards and filter duplicates
files = []