test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1]softnic: restore nic driver after test finished
@ 2020-04-22  5:38 Xie,WeiX
  2020-04-22  5:56 ` Han, YingyaX
  2020-04-23  5:52 ` Tu, Lijuan
  0 siblings, 2 replies; 3+ messages in thread
From: Xie,WeiX @ 2020-04-22  5:38 UTC (permalink / raw)
  To: dts; +Cc: Xie,WeiX

From: "Xie,WeiX" <weix.xie@intel.com>

*. restore nic drivers after case end to avoid interfere other cases

Signed-off-by: Xie,WeiX <weix.xie@intel.com>
---
 tests/TestSuite_softnic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py
index 9a400fb..c6ba6b9 100644
--- a/tests/TestSuite_softnic.py
+++ b/tests/TestSuite_softnic.py
@@ -55,7 +55,7 @@ class TestSoftnic(TestCase):
 
         # Verify that enough ports are available
         self.verify(len(ports) >= 1, "Insufficient ports for testing")
-
+        self.def_driver = self.dut.ports_info[ports[0]]['port'].get_nic_driver()
         self.ports_socket = self.dut.get_numa_id(ports[0])
         # Verify that enough threads are available
         cores = self.dut.get_core_list("1S/1C/1T")
@@ -223,4 +223,4 @@ class TestSoftnic(TestCase):
         """
         Run after each test suite.
         """
-        pass
+        self.dut.bind_interfaces_linux(driver=self.def_driver, nics_to_bind=self.dut.get_ports())
-- 
1.8.3.1


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

* Re: [dts] [PATCH V1]softnic: restore nic driver after test finished
  2020-04-22  5:38 [dts] [PATCH V1]softnic: restore nic driver after test finished Xie,WeiX
@ 2020-04-22  5:56 ` Han, YingyaX
  2020-04-23  5:52 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Han, YingyaX @ 2020-04-22  5:56 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

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

Tested-by: Han,YingyaX <yingyax.han@intel.com>

BRs,
Yingya

-----Original Message-----
From: dts <dts-bounces@dpdk.org> On Behalf Of Xie,WeiX
Sent: Wednesday, April 22, 2020 1:38 PM
To: dts@dpdk.org
Cc: Xie, WeiX <weix.xie@intel.com>
Subject: [dts] [PATCH V1]softnic: restore nic driver after test finished

From: "Xie,WeiX" <weix.xie@intel.com>

*. restore nic drivers after case end to avoid interfere other cases

Signed-off-by: Xie,WeiX <weix.xie@intel.com>
---
 tests/TestSuite_softnic.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py index 9a400fb..c6ba6b9 100644
--- a/tests/TestSuite_softnic.py
+++ b/tests/TestSuite_softnic.py
@@ -55,7 +55,7 @@ class TestSoftnic(TestCase):
 
         # Verify that enough ports are available
         self.verify(len(ports) >= 1, "Insufficient ports for testing")
-
+        self.def_driver = 
+ self.dut.ports_info[ports[0]]['port'].get_nic_driver()
         self.ports_socket = self.dut.get_numa_id(ports[0])
         # Verify that enough threads are available
         cores = self.dut.get_core_list("1S/1C/1T")
@@ -223,4 +223,4 @@ class TestSoftnic(TestCase):
         """
         Run after each test suite.
         """
-        pass
+        self.dut.bind_interfaces_linux(driver=self.def_driver, 
+ nics_to_bind=self.dut.get_ports())
--
1.8.3.1


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

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

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

* Re: [dts] [PATCH V1]softnic: restore nic driver after test finished
  2020-04-22  5:38 [dts] [PATCH V1]softnic: restore nic driver after test finished Xie,WeiX
  2020-04-22  5:56 ` Han, YingyaX
@ 2020-04-23  5:52 ` Tu, Lijuan
  1 sibling, 0 replies; 3+ messages in thread
From: Tu, Lijuan @ 2020-04-23  5:52 UTC (permalink / raw)
  To: Xie, WeiX, dts; +Cc: Xie, WeiX

Applied thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of Xie,WeiX
> Sent: Wednesday, April 22, 2020 1:38 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V1]softnic: restore nic driver after test finished
> 
> From: "Xie,WeiX" <weix.xie@intel.com>
> 
> *. restore nic drivers after case end to avoid interfere other cases
> 
> Signed-off-by: Xie,WeiX <weix.xie@intel.com>
> ---
>  tests/TestSuite_softnic.py | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/TestSuite_softnic.py b/tests/TestSuite_softnic.py index
> 9a400fb..c6ba6b9 100644
> --- a/tests/TestSuite_softnic.py
> +++ b/tests/TestSuite_softnic.py
> @@ -55,7 +55,7 @@ class TestSoftnic(TestCase):
> 
>          # Verify that enough ports are available
>          self.verify(len(ports) >= 1, "Insufficient ports for testing")
> -
> +        self.def_driver =
> + self.dut.ports_info[ports[0]]['port'].get_nic_driver()
>          self.ports_socket = self.dut.get_numa_id(ports[0])
>          # Verify that enough threads are available
>          cores = self.dut.get_core_list("1S/1C/1T")
> @@ -223,4 +223,4 @@ class TestSoftnic(TestCase):
>          """
>          Run after each test suite.
>          """
> -        pass
> +        self.dut.bind_interfaces_linux(driver=self.def_driver,
> + nics_to_bind=self.dut.get_ports())
> --
> 1.8.3.1


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

end of thread, other threads:[~2020-04-23  5:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  5:38 [dts] [PATCH V1]softnic: restore nic driver after test finished Xie,WeiX
2020-04-22  5:56 ` Han, YingyaX
2020-04-23  5:52 ` Tu, Lijuan

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).