aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/new/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-06-13 15:19:18 +0200
committerTibor Frank <tifrank@cisco.com>2018-06-18 13:12:10 +0000
commit2d001ed910d3835848fccb7bb96a98a5270698fe (patch)
treee659431b6494c7ca14286c94bd36ccd5db9034fa /resources/tools/presentation/new/input_data_parser.py
parenta9f251c649a5dea7428a43dc24380077a72dacba (diff)
CSIT-1126: Detection and reporting of failed MRR tests
Change-Id: Iafdd12a573b58ab3ba9c69699cd97c5a4e598601 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/new/input_data_parser.py')
-rw-r--r--resources/tools/presentation/new/input_data_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation/new/input_data_parser.py b/resources/tools/presentation/new/input_data_parser.py
index 0bb2b6ce71..cf13237774 100644
--- a/resources/tools/presentation/new/input_data_parser.py
+++ b/resources/tools/presentation/new/input_data_parser.py
@@ -464,6 +464,7 @@ class ExecutionChecker(ResultVisitor):
test_result["doc"] = replace(doc_str, ' |br| [', '[', maxreplace=1)
test_result["msg"] = test.message.replace('\n', ' |br| '). \
replace('\r', '').replace('"', "'")
+ test_result["status"] = test.status
if test.status == "PASS" and ("NDRPDRDISC" in tags or
"TCP" in tags or
"MRR" in tags):
@@ -507,6 +508,7 @@ class ExecutionChecker(ResultVisitor):
test_result["result"] = dict()
test_result["result"]["value"] = int(groups.group(2))
test_result["result"]["unit"] = groups.group(1)
+
elif test_type in ("MRR", ):
groups = re.search(self.REGEX_MRR, test.message)
test_result["result"] = dict()
@@ -516,8 +518,6 @@ class ExecutionChecker(ResultVisitor):
test_result["result"]["throughput"] = int(
test_result["result"]["rx"] /
test_result["result"]["duration"])
- else:
- test_result["status"] = test.status
self._test_ID = test.longname.lower()
self._data["tests"][self._test_ID] = test_result