aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-12-09 11:21:37 +0100
committerTibor Frank <tifrank@cisco.com>2019-12-09 12:46:42 +0100
commit762c67cae040358876e470822ad50a77d4f03c12 (patch)
treeabcd79d4f35972888ad6fe9cecc04ebfaf2b566e /resources/tools/presentation/input_data_parser.py
parentc0e53d575541d37bcd29b1c5a8f822a0204949c3 (diff)
Trending: Fix Alerts
Change-Id: I963022c386928b7f29b176bfb4a4e2bfb0a55409 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r--resources/tools/presentation/input_data_parser.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index af8a854ce9..d23fa8454d 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -452,10 +452,12 @@ class ExecutionChecker(ResultVisitor):
host = str(re.search(self.REGEX_TC_PAPI_CLI, msg.message).
group(1))
except (AttributeError, IndexError):
- host = u""
+ host = self._data[u"tests"][self._test_id][u"show-run"].\
+ count(u"DUT:") + 1
try:
socket = str(re.search(self.REGEX_TC_PAPI_CLI, msg.message).
group(2))
+ socket = f"/{socket}"
except (AttributeError, IndexError):
socket = u""
runtime = loads(
@@ -526,7 +528,7 @@ class ExecutionChecker(ResultVisitor):
txt_table.align[u"Vectors/Calls"] = u"r"
text += txt_table.get_string(sortby=u"Name") + u'\n'
- text = f" \n **DUT: {host}/{socket}** \n {text}".\
+ text = f" \n**DUT: {host}{socket}**\n{text}".\
replace(u'\n', u' |br| ').\
replace(u'\r', u'').\
replace(u'"', u"'")