From edd5263bd899c5443f57fa4fcfeec56e419149a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Mon, 4 May 2015 10:03:45 +0200 Subject: [PATCH] avocado.core.tree: Show multiplex in tree view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Multiplexed nodes affects heavily the tree structure and users should see i in the tree view. This patch makes "multiplex" nodes visible. Signed-off-by: Lukáš Doktor --- avocado/core/tree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avocado/core/tree.py b/avocado/core/tree.py index 848a66b2..904b6fe8 100644 --- a/avocado/core/tree.py +++ b/avocado/core/tree.py @@ -292,6 +292,8 @@ class TreeNode(object): node_name = ', '.join(map(str, [getattr(self, v) for v in attributes if hasattr(self, v)])) + if self.multiplex: + node_name += "-<>" length = max(2, (len(node_name) + 1) if not self.children or show_internal else 3) pad = ' ' * length -- GitLab