test suite reviews and discussions
 help / color / Atom feed
* Re: [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability
  2019-11-13  8:44 [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability zhang,yan
@ 2019-11-13  8:40 ` Zhu, WenhuiX
  0 siblings, 0 replies; 2+ messages in thread
From: Zhu, WenhuiX @ 2019-11-13  8:40 UTC (permalink / raw)
  To: Zhang, YanX A, dts; +Cc: Zhang, YanX A

[-- Attachment #1: Type: text/plain, Size: 2098 bytes --]

Tested-by: Zhu, WenhuiX <wenhuix.zhu@intel.com>

-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhang,yan
Sent: Wednesday, November 13, 2019 4:45 PM
To: dts@dpdk.org
Cc: Zhang, YanX A <yanx.a.zhang@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability

Optimize scripts to improve stability.

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

diff --git a/tests/TestSuite_vf_interrupt_pmd.py b/tests/TestSuite_vf_interrupt_pmd.py
index 0b1f858..eaeaccd 100644
--- a/tests/TestSuite_vf_interrupt_pmd.py
+++ b/tests/TestSuite_vf_interrupt_pmd.py
@@ -212,18 +212,23 @@ class TestVfInterruptPmd(TestCase):
 
         self.VF0_bind_vfio_pci()
 
+        cores = "1S/1C/1T"
+        core_list = self.vm0_dut.get_core_list(cores)
+        core_user = core_list[0]
+        core_mask_user = utils.create_mask(core_list)
+
         cmd = self.path + \
-              " -l 1-3 -n %d -- -P  -p 0x01 --config='(0,0,2)'" % (
-                  self.vm0_dut.get_memory_channels())
+              " -c %s -n %d -- -P  -p 0x01 --config='(0,0,%s)'" % (
+                  core_mask_user, self.vm0_dut.get_memory_channels(), core_user)
         self.vm0_dut.send_expect(cmd, "L3FWD_POWER", 60)
         time.sleep(1)
         self.send_packet(self.vf0_mac, self.rx_intf_0, self.vm0_dut)
         self.destroy_vm_env()
 
         self.verify(
-            "lcore 2 is waked up from rx interrupt on port 0" in self.out2, "Wake up failed")
+            "lcore %s is waked up from rx interrupt on port 0" % core_user in self.out2, "Wake up failed")
         self.verify(
-            "lcore 2 sleeps until interrupt triggers"  in self.out2, "lcore 2 not sleeps")
+            "lcore %s sleeps until interrupt triggers" % core_user in self.out2, "lcore %s not sleeps" % core_user)
 
     def test_nic_interrupt_VF_vfio_pci(self, driver='default'):
         """
-- 
2.17.2


[-- Attachment #2: TestVfInterruptPmd_fortvill_spirit.log --]
[-- Type: application/octet-stream, Size: 96658 bytes --]

[-- Attachment #3: TestVfInterruptPmd_fortpark.log --]
[-- Type: application/octet-stream, Size: 96582 bytes --]

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

* [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability
@ 2019-11-13  8:44 zhang,yan
  2019-11-13  8:40 ` Zhu, WenhuiX
  0 siblings, 1 reply; 2+ messages in thread
From: zhang,yan @ 2019-11-13  8:44 UTC (permalink / raw)
  To: dts; +Cc: zhang,yan

Optimize scripts to improve stability.

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

diff --git a/tests/TestSuite_vf_interrupt_pmd.py b/tests/TestSuite_vf_interrupt_pmd.py
index 0b1f858..eaeaccd 100644
--- a/tests/TestSuite_vf_interrupt_pmd.py
+++ b/tests/TestSuite_vf_interrupt_pmd.py
@@ -212,18 +212,23 @@ class TestVfInterruptPmd(TestCase):
 
         self.VF0_bind_vfio_pci()
 
+        cores = "1S/1C/1T"
+        core_list = self.vm0_dut.get_core_list(cores)
+        core_user = core_list[0]
+        core_mask_user = utils.create_mask(core_list)
+
         cmd = self.path + \
-              " -l 1-3 -n %d -- -P  -p 0x01 --config='(0,0,2)'" % (
-                  self.vm0_dut.get_memory_channels())
+              " -c %s -n %d -- -P  -p 0x01 --config='(0,0,%s)'" % (
+                  core_mask_user, self.vm0_dut.get_memory_channels(), core_user)
         self.vm0_dut.send_expect(cmd, "L3FWD_POWER", 60)
         time.sleep(1)
         self.send_packet(self.vf0_mac, self.rx_intf_0, self.vm0_dut)
         self.destroy_vm_env()
 
         self.verify(
-            "lcore 2 is waked up from rx interrupt on port 0" in self.out2, "Wake up failed")
+            "lcore %s is waked up from rx interrupt on port 0" % core_user in self.out2, "Wake up failed")
         self.verify(
-            "lcore 2 sleeps until interrupt triggers"  in self.out2, "lcore 2 not sleeps")
+            "lcore %s sleeps until interrupt triggers" % core_user in self.out2, "lcore %s not sleeps" % core_user)
 
     def test_nic_interrupt_VF_vfio_pci(self, driver='default'):
         """
-- 
2.17.2


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-13  8:44 [dts] [PATCH V1] tests/TestSuite_vf_interrupt_pmd:Optimize scripts to improve stability zhang,yan
2019-11-13  8:40 ` Zhu, WenhuiX

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox