Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1041: Trending dashboard
[csit.git]
/
resources
/
tools
/
presentation
/
input_data_parser.py
diff --git
a/resources/tools/presentation/input_data_parser.py
b/resources/tools/presentation/input_data_parser.py
index
7adc9c0
..
18fea3e
100644
(file)
--- a/
resources/tools/presentation/input_data_parser.py
+++ b/
resources/tools/presentation/input_data_parser.py
@@
-171,7
+171,7
@@
class ExecutionChecker(ResultVisitor):
REGEX_TOLERANCE = re.compile(r'^[\D\d]*LOSS_ACCEPTANCE:\s(\d*\.\d*)\s'
r'[\D\d]*')
REGEX_TOLERANCE = re.compile(r'^[\D\d]*LOSS_ACCEPTANCE:\s(\d*\.\d*)\s'
r'[\D\d]*')
- REGEX_VERSION = re.compile(r"(
stdout: 'vat# vat# Version:)(
\s*)(.*)")
+ REGEX_VERSION = re.compile(r"(
return STDOUT Version:
\s*)(.*)")
REGEX_TCP = re.compile(r'Total\s(rps|cps|throughput):\s([0-9]*).*$')
REGEX_TCP = re.compile(r'Total\s(rps|cps|throughput):\s([0-9]*).*$')
@@
-244,13
+244,13
@@
class ExecutionChecker(ResultVisitor):
:returns: Nothing.
"""
:returns: Nothing.
"""
- if msg.message.count("
stdout: 'vat# vat#
Version:"):
+ if msg.message.count("
return STDOUT
Version:"):
self._version = str(re.search(self.REGEX_VERSION, msg.message).
self._version = str(re.search(self.REGEX_VERSION, msg.message).
- group(
3
))
+ group(
2
))
self._data["metadata"]["version"] = self._version
self._msg_type = None
self._data["metadata"]["version"] = self._version
self._msg_type = None
- logging.
debug
(" VPP version: {0}".format(self._version))
+ logging.
info
(" VPP version: {0}".format(self._version))
def _get_vat_history(self, msg):
"""Called when extraction of VAT command history is required.
def _get_vat_history(self, msg):
"""Called when extraction of VAT command history is required.
@@
-585,7
+585,7
@@
class ExecutionChecker(ResultVisitor):
:type setup_kw: Keyword
:returns: Nothing.
"""
:type setup_kw: Keyword
:returns: Nothing.
"""
- if setup_kw.name.count("
Vpp Show Version Verbose
") \
+ if setup_kw.name.count("
Show Vpp Version On All Duts
") \
and not self._version:
self._msg_type = "setup-version"
setup_kw.messages.visit(self)
and not self._version:
self._msg_type = "setup-version"
setup_kw.messages.visit(self)