* [dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report
@ 2018-08-11 10:05 Lijuan Tu
2018-08-20 10:07 ` Liu, Yong
0 siblings, 1 reply; 2+ messages in thread
From: Lijuan Tu @ 2018-08-11 10:05 UTC (permalink / raw)
To: dts; +Cc: Lijuan Tu
This is for DPDK performance lab.
Signed-off-by: Lijuan Tu <lijuan.tu@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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report
2018-08-11 10:05 [dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report Lijuan Tu
@ 2018-08-20 10:07 ` Liu, Yong
0 siblings, 0 replies; 2+ messages in thread
From: Liu, Yong @ 2018-08-20 10:07 UTC (permalink / raw)
To: Lijuan Tu, dts
Applied into next branch.
On 08/11/2018 06:05 PM, Lijuan Tu wrote:
> This is for DPDK performance lab.
>
> Signed-off-by: Lijuan Tu<lijuan.tu@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-08-20 2:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-11 10:05 [dts] [DTS] [NEXT] [PATCH] tests/nic_single_core_perf: add result in json report Lijuan Tu
2018-08-20 10:07 ` Liu, Yong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).