[Ezbench-dev] [PATCH 17/25] scm/ResultsDAG: show the number of commits between versions in the .dot
Petri Latvala
petri.latvala at intel.com
Fri Feb 24 11:19:18 UTC 2017
From: Martin Peres <martin.peres at linux.intel.com>
This eases debugging when looking at the overlay
---
python-modules/ezbench/scm.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/python-modules/ezbench/scm.py b/python-modules/ezbench/scm.py
index 92da914..2fcccdc 100755
--- a/python-modules/ezbench/scm.py
+++ b/python-modules/ezbench/scm.py
@@ -203,9 +203,11 @@ class ResultsDAG:
out = "digraph {\n"
for p in self._children:
for c in self.children(p):
- out += " \"{}\" -> \"{}\"[label=\"{}\"];\n".format(self.__to_dot_format_node_name__(p),
- self.__to_dot_format_node_name__(c),
- len(self.edge_results(p, c)))
+ commits_count = len(list(self.scm.version_range_list(p, c)))
+ msg= " \"{}\" -> \"{}\"[label=\"{} commits, {} tests\"];\n"
+ out += msg.format(self.__to_dot_format_node_name__(p),
+ self.__to_dot_format_node_name__(c),
+ commits_count, len(self.edge_results(p, c)))
out += "}"
if output_file is not None:
--
2.9.3
More information about the Ezbench-dev
mailing list