aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-13 11:27:05 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-13 10:29:08 +0000
commit9d26798115a2ffd4b3b18f6df18464f1dff99467 (patch)
treeacd3eb982fc442936d1b22fdd9b1eaf26bddf61c /resources/tools/presentation/input_data_parser.py
parent4079e625b942d20d818d2d94ca7a96c97a3003f8 (diff)
Reprot: Add dpdk tsh
Change-Id: I577b6957a605f11bc66494273fa37a6345fc117e Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 280f41f5b7ee7415f75839b3096efe4b3935b581)
Diffstat (limited to 'resources/tools/presentation/input_data_parser.py')
-rw-r--r--resources/tools/presentation/input_data_parser.py23
1 files changed, 15 insertions, 8 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index 73b9ea114a..fae78d5188 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -423,14 +423,19 @@ class ExecutionChecker(ResultVisitor):
return u""
if hdr_lat_1 and hdr_lat_2:
- return (
- f"{hdr_lat_1.get_value_at_percentile(50.0)} "
- f"{hdr_lat_1.get_value_at_percentile(90.0)} "
- f"{hdr_lat_1.get_value_at_percentile(99.0)} , "
- f"{hdr_lat_2.get_value_at_percentile(50.0)} "
- f"{hdr_lat_2.get_value_at_percentile(90.0)} "
- f"{hdr_lat_2.get_value_at_percentile(99.0)}"
- )
+ hdr_lat_1_50 = hdr_lat_1.get_value_at_percentile(50.0)
+ hdr_lat_1_90 = hdr_lat_1.get_value_at_percentile(90.0)
+ hdr_lat_1_99 = hdr_lat_1.get_value_at_percentile(99.0)
+ hdr_lat_2_50 = hdr_lat_2.get_value_at_percentile(50.0)
+ hdr_lat_2_90 = hdr_lat_2.get_value_at_percentile(90.0)
+ hdr_lat_2_99 = hdr_lat_2.get_value_at_percentile(99.0)
+
+ if (hdr_lat_1_50 + hdr_lat_1_90 + hdr_lat_1_99 +
+ hdr_lat_2_50 + hdr_lat_2_90 + hdr_lat_2_99):
+ return (
+ f"{hdr_lat_1_50} {hdr_lat_1_90} {hdr_lat_1_99} , "
+ f"{hdr_lat_2_50} {hdr_lat_2_90} {hdr_lat_2_99}"
+ )
return u""
@@ -1030,6 +1035,8 @@ class ExecutionChecker(ResultVisitor):
}
except (AttributeError, IndexError, ValueError, TypeError):
test_result[u"status"] = u"FAIL"
+ elif u"DEVICETEST" in tags:
+ test_result[u"type"] = u"DEVICETEST"
else:
test_result[u"status"] = u"FAIL"
self._data[u"tests"][self._test_id] = test_result