From: "Xie,WeiX" <weix.xie@intel.com>
To: dts@dpdk.org
Cc: "Xie,WeiX" <weix.xie@intel.com>
Subject: [dts] [PATCH V1]softnic: restore nic driver after test finished
Date: Wed, 22 Apr 2020 13:38:26 +0800 [thread overview]
Message-ID: <1587533906-380636-1-git-send-email-weix.xie@intel.com> (raw)
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
next reply other threads:[~2020-04-22 5:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-22 5:38 Xie,WeiX [this message]
2020-04-22 5:56 ` Han, YingyaX
2020-04-23 5:52 ` Tu, Lijuan
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=1587533906-380636-1-git-send-email-weix.xie@intel.com \
--to=weix.xie@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).