aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_parser.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-02-14 07:42:29 +0100
committerTibor Frank <tifrank@cisco.com>2020-02-14 07:42:29 +0100
commitc81eac1e36b37c78f144a4218c231da846a908f6 (patch)
tree762ba7ea9b599bcceecdaa7510b20a54a78743b1 /resources/tools/presentation/input_data_parser.py
parent8d43bb0239f0100e46a8e333da57ea10e2c956d3 (diff)
Report: Detailed test results table
Change-Id: I2fd223ac522d8a88546269db0752995d0c77e4fe 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.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py
index 6ce71ae0f6..60c5af2870 100644
--- a/resources/tools/presentation/input_data_parser.py
+++ b/resources/tools/presentation/input_data_parser.py
@@ -454,7 +454,7 @@ class ExecutionChecker(ResultVisitor):
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_1_50} {hdr_lat_1_90} {hdr_lat_1_99} "
f"{hdr_lat_2_50} {hdr_lat_2_90} {hdr_lat_2_99}"
)
@@ -467,13 +467,15 @@ class ExecutionChecker(ResultVisitor):
data[u'pdr_lat_50_2'])
pdr_lat_90 = _process_lat(data[u'pdr_lat_90_1'],
data[u'pdr_lat_90_2'])
- pdr_lat_10 = f"\n3. {pdr_lat_10}" if pdr_lat_10 else u""
- pdr_lat_50 = f"\n4. {pdr_lat_50}" if pdr_lat_50 else u""
- pdr_lat_90 = f"\n5. {pdr_lat_90}" if pdr_lat_90 else u""
+ pdr_lat_10 = f"\n3. {pdr_lat_10} (10% PDR)" if pdr_lat_10 else u""
+ pdr_lat_50 = f"\n4. {pdr_lat_50} (50% PDR)" if pdr_lat_50 else u""
+ pdr_lat_90 = f"\n5. {pdr_lat_90} (90% PDR)" if pdr_lat_90 else u""
return (
- f"1. {(data[u'ndr_low'] / 1e6):.2f} {data[u'ndr_low_b']:.2f}"
- f"\n2. {(data[u'pdr_low'] / 1e6):.2f} {data[u'pdr_low_b']:.2f}"
+ f"1. {(data[u'ndr_low'] / 1e6):.2f} {data[u'ndr_low_b']:.2f} "
+ f"(NDR)"
+ f"\n2. {(data[u'pdr_low'] / 1e6):.2f} {data[u'pdr_low_b']:.2f} "
+ f"(PDR)"
f"{pdr_lat_10}"
f"{pdr_lat_50}"
f"{pdr_lat_90}"