[dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report
Lijuan Tu
lijuan.tu at intel.com
Sat Aug 11 12:05:49 CEST 2018
This is for DPDK performance lab.
Signed-off-by: Lijuan Tu <lijuan.tu at intel.com>
---
tests/TestSuite_nic_single_core_perf.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py
index c081560..847a94c 100644
--- a/tests/TestSuite_nic_single_core_perf.py
+++ b/tests/TestSuite_nic_single_core_perf.py
@@ -303,8 +303,13 @@ class TestNicSingleCorePerf(TestCase):
value = row_in['TXD/RXD'], unit = 'descriptors')
delta = (float(row_in['Throughput'].split()[0]) -
float(row_in['Expected Throughput'].split()[0]))
+ if delta >= -self.gap:
+ result = 'PASS'
+ else:
+ result = 'FAIL'
row_dict['throughput'] = dict(
- delta = delta, unit = row_in['Throughput'].split()[1])
+ delta = delta, unit = row_in['Throughput'].split()[1],
+ result = result)
json_obj['results'].append(row_dict)
with open(os.path.join(rst.path2Result,
'{0:s}_single_core_perf.json'.format(
--
1.8.3.1
More information about the dts
mailing list