From 29deff8707c825d1992a3bda6569a3e5eefb1a36 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Sun, 2 Mar 2014 16:08:37 +0400 Subject: [PATCH] ability to merge logs with intersections only --- modules/ts/misc/summary.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ts/misc/summary.py b/modules/ts/misc/summary.py index 4e0cb7e..4cbb890 100755 --- a/modules/ts/misc/summary.py +++ b/modules/ts/misc/summary.py @@ -44,6 +44,7 @@ if __name__ == "__main__": parser.add_option("", "--match", dest="match", default=None) parser.add_option("", "--match-replace", dest="match_replace", default="") parser.add_option("", "--regressions-only", dest="regressionsOnly", default=None, metavar="X-FACTOR", help="show only tests with performance regressions not") + parser.add_option("", "--intersect-logs", dest="intersect_logs", default=False, help="show only tests present in all log files") (options, args) = parser.parse_args() options.generateHtml = detectHtmlOutputType(options.format) @@ -162,6 +163,10 @@ if __name__ == "__main__": for i in range(setsCount): case = cases[i] if case is None: + if options.intersect_logs: + needNewRow = False + break + tbl.newCell(str(i), "-") if options.calc_relatives and i > 0: tbl.newCell(str(i) + "%", "-") -- 2.7.4