test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages
@ 2019-08-20  9:50 zhang,yan
  2019-08-20  9:47 ` Zhang, YanX A
  2019-08-30  3:26 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: zhang,yan @ 2019-08-20  9:50 UTC (permalink / raw)
  To: dts; +Cc: zhang,yan

Reduce the number of unneeded packets and optimize script run time.

Signed-off-by: zhang,yan <yanx.a.zhang@intel.com>
---
 tests/TestSuite_runtime_vf_queue_number.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_runtime_vf_queue_number.py
index 3e04489..dca1937 100644
--- a/tests/TestSuite_runtime_vf_queue_number.py
+++ b/tests/TestSuite_runtime_vf_queue_number.py
@@ -273,13 +273,14 @@ class TestRuntimeVfQn(TestCase):
         gest_eal_param = '-w %s --file-prefix=test2' % self.vm_dut_0.ports_info[0]['pci']
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
         for valid_qn in range(1, 17):
+            count = valid_qn * 20
             if valid_qn == 1:
                 self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param=' --rxq=1 --txq=1')
                 self.vm0_testpmd.execute_cmd('set verbose 1')
                 self.vm0_testpmd.execute_cmd("set promisc all off", "testpmd> ")
                 self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ")
                 self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key ipv4 %s' % RSS_KEY)
-                self.verify_result(valid_qn, 500)
+                self.verify_result(valid_qn, count)
                 self.vm0_testpmd.execute_cmd('quit', '# ')
             else:
                 self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param,
@@ -287,7 +288,7 @@ class TestRuntimeVfQn(TestCase):
                 self.vm0_testpmd.execute_cmd("set promisc all off", "testpmd> ")
                 self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ")
                 self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key ipv4 %s' % RSS_KEY)
-                self.verify_result(valid_qn, 500)
+                self.verify_result(valid_qn, count)
                 self.vm0_testpmd.execute_cmd('quit', '# ')
 
     def test_set_invalid_vf_qn_in_testpmd(self):
@@ -323,19 +324,20 @@ class TestRuntimeVfQn(TestCase):
         self.vm0_testpmd = PmdOutput(self.vm_dut_0)
         self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param='')
         for valid_qn in range(1, 17):
+            count = valid_qn * 20
             if valid_qn == 1:
                 guest_cmds = self.testpmd_config_cmd_list(1)
                 guest_cmds.insert(0, ['set fwd mac'])
                 guest_cmds.insert(0, ['set promisc all off'])
                 guest_cmds.insert(0, ['set verbose 1'])
                 self.execute_testpmd_cmd(guest_cmds)
-                self.verify_result(valid_qn, 500)
+                self.verify_result(valid_qn, count)
             else:
                 guest_cmds = self.testpmd_config_cmd_list(valid_qn)
                 guest_cmds.insert(0, ['set fwd mac'])
                 guest_cmds.insert(0, ['set promisc all off'])
                 self.execute_testpmd_cmd(guest_cmds)
-                self.verify_result(valid_qn, 500)
+                self.verify_result(valid_qn, count)
         self.vm0_testpmd.execute_cmd('quit', '# ')
 
     def test_set_invalid_vf_qn_with_testpmd_func_cmd(self):
-- 
2.17.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-30  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-20  9:50 [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages zhang,yan
2019-08-20  9:47 ` Zhang, YanX A
2019-08-30  3:26 ` Tu, Lijuan

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).