summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryufengmx <yufengx.mo@intel.com>2019-08-06 16:01:04 +0800
committerLijuan Tu <lijuan.tu@intel.com>2019-08-08 21:59:33 +0800
commit632232366b383f7ef6f1a73990a9ea5b66b4510d (patch)
tree0e458db5c8575e148a45c1f508ec2e34dc0d7c3b
parentcdd9727d8733f5624f14ffbff40fed7eba879cdc (diff)
downloaddts-next.zip
dts-next.tar.gz
dts-next.tar.xz
tests/nic_single_core_perf: update pktgen input parameternext
*. update suite nic_single_core_perf with new pktgen measure_throughput input parameter definition. *. fix typo. Signed-off-by: yufengmx <yufengx.mo@intel.com>
-rw-r--r--tests/TestSuite_nic_single_core_perf.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/TestSuite_nic_single_core_perf.py b/tests/TestSuite_nic_single_core_perf.py
index 5b815f4..ca09c72 100644
--- a/tests/TestSuite_nic_single_core_perf.py
+++ b/tests/TestSuite_nic_single_core_perf.py
@@ -101,7 +101,7 @@ class TestNicSingleCorePerf(TestCase):
self.expected_throughput = self.get_suite_cfg()[
'expected_throughput'][self.nic]
- # initilize throughput attribution
+ # initialize throughput attribution
# {'$framesize':{"$nb_desc": 'throughput'}
self.throughput = {}
@@ -182,7 +182,7 @@ class TestNicSingleCorePerf(TestCase):
# measure throughput
stream_ids = self.prepare_stream(frame_size)
- traffic_opt = {'delay': self.test_duration}
+ traffic_opt = {'duration': self.test_duration}
_, packets_received = self.tester.pktgen.measure_throughput(
stream_ids, traffic_opt)
throughput = packets_received / 1000000.0
@@ -193,7 +193,7 @@ class TestNicSingleCorePerf(TestCase):
self.verify(throughput,
"No traffic detected, please check your configuration")
- self.logger.info("Trouthput of " +
+ self.logger.info("Throughput of " +
"framesize: {}, rxd/txd: {} is :{} Mpps".format(
frame_size, nb_desc, throughput))