test suite reviews and discussions
 help / color / Atom feed
* [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match
@ 2020-05-29  9:10 xizhan4x
  2020-05-29  9:13 ` Zhang, XiX
  2020-06-01  3:25 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: xizhan4x @ 2020-05-29  9:10 UTC (permalink / raw)
  To: dts; +Cc: xizhan4x

Modify regular expression matching blacklist


Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_blacklist.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py
index 64360bb..d017347 100644
--- a/tests/TestSuite_blacklist.py
+++ b/tests/TestSuite_blacklist.py
@@ -49,7 +49,7 @@ 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]+\)"
+        self.regexp_blacklisted_port = "Probe PCI driver: net.*%s \(%s\) device: .*%s \(socket [-0-9]+\)"
         self.pmdout = PmdOutput(self.dut)
 
     def set_up(self):
@@ -71,8 +71,6 @@ class TestBlackList(TestCase):
             # "Device is blacklisted, not initializing" but avoid to consume more
             # than one device.
             port_pci = self.dut.ports_info[port]['pci']
-            if self.env == "bsdapp":
-                port_pci = ':'.join(["0000", port_pci])
             regexp_blacklisted_port = self.regexp_blacklisted_port % (
                 DRIVERS.get(self.nic), self.dut.ports_info[port]['type'],
                 port_pci)
-- 
2.17.2


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

* Re: [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match
  2020-05-29  9:10 [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match xizhan4x
@ 2020-05-29  9:13 ` Zhang, XiX
  2020-06-01  3:25 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Zhang, XiX @ 2020-05-29  9:13 UTC (permalink / raw)
  To: dts

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

Tested-by: zhang,xi <xix.zhang@intel.com>

-----Original Message-----
From: Zhang, XiX 
Sent: Friday, May 29, 2020 5:11 PM
To: dts@dpdk.org
Cc: Zhang, XiX <xix.zhang@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_blacklist:Modify regular match

Modify regular expression matching blacklist


Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
 tests/TestSuite_blacklist.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py index 64360bb..d017347 100644
--- a/tests/TestSuite_blacklist.py
+++ b/tests/TestSuite_blacklist.py
@@ -49,7 +49,7 @@ 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]+\)"
+        self.regexp_blacklisted_port = "Probe PCI driver: net.*%s \(%s\) device: .*%s \(socket [-0-9]+\)"
         self.pmdout = PmdOutput(self.dut)
 
     def set_up(self):
@@ -71,8 +71,6 @@ class TestBlackList(TestCase):
             # "Device is blacklisted, not initializing" but avoid to consume more
             # than one device.
             port_pci = self.dut.ports_info[port]['pci']
-            if self.env == "bsdapp":
-                port_pci = ':'.join(["0000", port_pci])
             regexp_blacklisted_port = self.regexp_blacklisted_port % (
                 DRIVERS.get(self.nic), self.dut.ports_info[port]['type'],
                 port_pci)
--
2.17.2


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

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

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

* Re: [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match
  2020-05-29  9:10 [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match xizhan4x
  2020-05-29  9:13 ` Zhang, XiX
@ 2020-06-01  3:25 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-06-01  3:25 UTC (permalink / raw)
  To: Zhang, XiX, dts; +Cc: Zhang, XiX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xizhan4x
> Sent: Friday, May 29, 2020 5:11 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match
> 
> Modify regular expression matching blacklist
> 
> 
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
> ---
>  tests/TestSuite_blacklist.py | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/tests/TestSuite_blacklist.py b/tests/TestSuite_blacklist.py index
> 64360bb..d017347 100644
> --- a/tests/TestSuite_blacklist.py
> +++ b/tests/TestSuite_blacklist.py
> @@ -49,7 +49,7 @@ 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]+\)"
> +        self.regexp_blacklisted_port = "Probe PCI driver: net.*%s \(%s\)
> device: .*%s \(socket [-0-9]+\)"
>          self.pmdout = PmdOutput(self.dut)
> 
>      def set_up(self):
> @@ -71,8 +71,6 @@ class TestBlackList(TestCase):
>              # "Device is blacklisted, not initializing" but avoid to consume more
>              # than one device.
>              port_pci = self.dut.ports_info[port]['pci']
> -            if self.env == "bsdapp":
> -                port_pci = ':'.join(["0000", port_pci])
>              regexp_blacklisted_port = self.regexp_blacklisted_port % (
>                  DRIVERS.get(self.nic), self.dut.ports_info[port]['type'],
>                  port_pci)
> --
> 2.17.2


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

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  9:10 [dts] [PATCH V1] tests/TestSuite_blacklist:Modify regular match xizhan4x
2020-05-29  9:13 ` Zhang, XiX
2020-06-01  3:25 ` Tu, Lijuan

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