test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhang, XiX" <xix.zhang@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>
Subject: Re: [dts] [PATCH V1] tests/TestSuite_blacklist:Add judgment rule because the startup display of IGB network card is different
Date: Wed, 20 May 2020 08:04:36 +0000	[thread overview]
Message-ID: <E22AF82976AEF646B9B29E4604B9BED504CA5E1A@CDSMSX102.ccr.corp.intel.com> (raw)
In-Reply-To: <1589960984-60061-1-git-send-email-xix.zhang@intel.com>

[-- 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

      reply	other threads:[~2020-05-20  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-20  7:49 xizhan4x
2020-05-20  8:04 ` Zhang, XiX [this message]

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=E22AF82976AEF646B9B29E4604B9BED504CA5E1A@CDSMSX102.ccr.corp.intel.com \
    --to=xix.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).