test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhang, YanX A" <yanx.a.zhang@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages
Date: Tue, 20 Aug 2019 09:47:29 +0000	[thread overview]
Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F412C7@SHSMSX105.ccr.corp.intel.com> (raw)
In-Reply-To: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com>

Tested-by:  Zhang, YanX A <yanx.a.zhang@intel.com>

-----Original Message-----
From: Zhang, YanX A 
Sent: Tuesday, August 20, 2019 5:51 PM
To: dts@dpdk.org
Cc: Zhang, YanX A <yanx.a.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages

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


  reply	other threads:[~2019-08-20  9:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20  9:50 zhang,yan
2019-08-20  9:47 ` Zhang, YanX A [this message]
2019-08-30  3:26 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2C49E4B25FAD1D419F7564D633EF72E1F412C7@SHSMSX105.ccr.corp.intel.com \
    --to=yanx.a.zhang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).