* Re: [dts] [PATCH V1] tests/TestSuite_blacklist:Add judgment rule because the startup display of IGB network card is different
2020-05-20 7:49 [dts] [PATCH V1] tests/TestSuite_blacklist:Add judgment rule because the startup display of IGB network card is different xizhan4x
@ 2020-05-20 8:04 ` Zhang, XiX
0 siblings, 0 replies; 2+ messages in thread
From: Zhang, XiX @ 2020-05-20 8:04 UTC (permalink / raw)
To: dts
[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]
Tested-by:zhang,xi <xix.zhang@intel.com>
-----Original Message-----
From: Zhang, XiX
Sent: Wednesday, May 20, 2020 3:50 PM
To: dts@dpdk.org
Cc: Zhang, XiX <xix.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_blacklist:Add judgment rule because the startup display of IGB network card is different
Add judgment rule because the startup display of IGB network card is different
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
tests/TestSuite_blacklist.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py index 64360bb..2c8c24d 100644
--- a/tests/TestSuite_blacklist.py
+++ b/tests/TestSuite_blacklist.py
@@ -49,7 +49,10 @@ class TestBlackList(TestCase):
self.ports = self.dut.get_ports(self.nic)
self.verify(len(self.ports) >= 2, "Insufficient ports for testing")
[arch, machine, self.env, toolchain] = self.target.split('-')
- self.regexp_blacklisted_port = "Probe PCI driver: net_%s \(%s\) device: %s \(socket [-0-9]+\)"
+ if DRIVERS.get(self.nic)=="igb":
+ self.regexp_blacklisted_port = "Probe PCI driver: net_e1000_%s \(%s\) device: %s \(socket [-0-9]+\)"
+ else:
+ self.regexp_blacklisted_port = "Probe PCI driver: net_%s \(%s\) device: %s \(socket [-0-9]+\)"
self.pmdout = PmdOutput(self.dut)
def set_up(self):
--
2.17.2
[-- Attachment #2: TestBlackList.log --]
[-- Type: application/octet-stream, Size: 6303 bytes --]
21/05/2020 03:44:10 dts:
TEST SUITE : TestBlackList
21/05/2020 03:44:10 dts: NIC : powerville
21/05/2020 03:44:10 dut.10.240.183.189:
21/05/2020 03:44:10 tester:
21/05/2020 03:44:10 TestBlackList: Test Case test_bl_allbutoneportblacklisted Begin
21/05/2020 03:44:10 dut.10.240.183.189:
21/05/2020 03:44:10 tester:
21/05/2020 03:44:10 dut.10.240.183.189: kill_all: called by dut and has no prefix list.
21/05/2020 03:44:11 dut.10.240.183.189: ./x86_64-native-linuxapp-gcc/app/testpmd -l 1,2 -n 4 -b 0000:04:00.0 -b 0000:04:00.1 -b 0000:04:00.2 --file-prefix=dpdk_27409_20200521034346 -- -i
21/05/2020 03:44:12 dut.10.240.183.189: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/dpdk_27409_20200521034346/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.3 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.
Configuring Port 0 (socket 0)
Port 0: B4:96:91:49:98:CF
Checking link statuses...
Done
21/05/2020 03:44:22 TestBlackList: Test Case test_bl_allbutoneportblacklisted Result PASSED:
21/05/2020 03:44:22 dut.10.240.183.189: quit
21/05/2020 03:44:23 dut.10.240.183.189: quit
Stopping port 0...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Bye...
21/05/2020 03:44:23 TestBlackList: Test Case test_bl_noblacklisted Begin
21/05/2020 03:44:23 dut.10.240.183.189:
21/05/2020 03:44:23 tester:
21/05/2020 03:44:23 dut.10.240.183.189: ./x86_64-native-linuxapp-gcc/app/testpmd -l 1,2 -n 4 -w 0000:04:00.0 -w 0000:04:00.1 -w 0000:04:00.2 -w 0000:04:00.3 --file-prefix=dpdk_27409_20200521034346 -- -i
21/05/2020 03:44:25 dut.10.240.183.189: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/dpdk_27409_20200521034346/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.0 (socket 0)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.1 (socket 0)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.2 (socket 0)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.3 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Configuring Port 0 (socket 0)
Port 0: B4:96:91:49:98:CC
Configuring Port 1 (socket 0)
Port 1: B4:96:91:49:98:CD
Configuring Port 2 (socket 0)
Port 2: B4:96:91:49:98:CE
Configuring Port 3 (socket 0)
Port 3: B4:96:91:49:98:CF
Checking link statuses...
Done
21/05/2020 03:44:35 TestBlackList: Test Case test_bl_noblacklisted Result PASSED:
21/05/2020 03:44:35 dut.10.240.183.189: quit
21/05/2020 03:44:37 dut.10.240.183.189: quit
Stopping port 0...
Stopping ports...
Done
Stopping port 1...
Stopping ports...
Done
Stopping port 2...
Stopping ports...
Done
Stopping port 3...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Shutting down port 1...
Closing ports...
Done
Shutting down port 2...
Closing ports...
Done
Shutting down port 3...
Closing ports...
Done
Bye...
21/05/2020 03:44:37 TestBlackList: Test Case test_bl_oneportblacklisted Begin
21/05/2020 03:44:37 dut.10.240.183.189:
21/05/2020 03:44:37 tester:
21/05/2020 03:44:37 dut.10.240.183.189: kill_all: called by dut and prefix list has value.
21/05/2020 03:44:38 dut.10.240.183.189: ./x86_64-native-linuxapp-gcc/app/testpmd -l 1,2 -n 4 -b 0000:04:00.0 --file-prefix=dpdk_27409_20200521034346 -- -i
21/05/2020 03:44:39 dut.10.240.183.189: EAL: Detected 88 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/dpdk_27409_20200521034346/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: using IOMMU type 1 (Type 1)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.1 (socket 0)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.2 (socket 0)
EAL: Probe PCI driver: net_e1000_igb (8086:1521) device: 0000:04:00.3 (socket 0)
No telemetry legacy support - No legacy callbacks, legacy socket not created
Interactive-mode selected
testpmd: create a new mbuf pool <mbuf_pool_socket_0>: n=155456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.
Configuring Port 0 (socket 0)
Port 0: B4:96:91:49:98:CD
Configuring Port 1 (socket 0)
Port 1: B4:96:91:49:98:CE
Configuring Port 2 (socket 0)
Port 2: B4:96:91:49:98:CF
Checking link statuses...
Done
21/05/2020 03:44:49 TestBlackList: Test Case test_bl_oneportblacklisted Result PASSED:
21/05/2020 03:44:49 dut.10.240.183.189: quit
21/05/2020 03:44:51 dut.10.240.183.189: quit
Stopping port 0...
Stopping ports...
Done
Stopping port 1...
Stopping ports...
Done
Stopping port 2...
Stopping ports...
Done
Shutting down port 0...
Closing ports...
Done
Shutting down port 1...
Closing ports...
Done
Shutting down port 2...
Closing ports...
Done
Bye...
21/05/2020 03:44:51 dts:
TEST SUITE ENDED: TestBlackList
^ permalink raw reply [flat|nested] 2+ messages in thread