[dts] [PATCH V1] Before the exception exit, it needs to be re-bound to the DPDK.
Peng Zhihong
zhihongx.peng at intel.com
Mon Nov 4 07:21:09 CET 2019
Before the exception exit, it needs to be re-bound to the DPDK.
Signed-off-by: Peng Zhihong <zhihongx.peng at intel.com>
---
tests/TestSuite_userspace_ethtool.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_userspace_ethtool.py b/tests/TestSuite_userspace_ethtool.py
index 116fd3a..16d7f5c 100644
--- a/tests/TestSuite_userspace_ethtool.py
+++ b/tests/TestSuite_userspace_ethtool.py
@@ -335,7 +335,9 @@ class TestUserspaceEthtool(TestCase, IxiaPacketGenerator):
# get linux interface
intf = netdev.get_interface_name()
out = self.dut.send_expect("ethtool -d %s raw off file %s" % (intf, portinfo['reg_file']), "# ")
- self.verify(("register" in out and "CTRL" in out), "Failed to dump %s registers" % intf)
+ if "register" not in out or "CTRL" not in out:
+ portinfo['net_dev'].bind_driver(portinfo['ori_driver'])
+ raise VerifyFailure("Failed to dump %s registers" % intf)
for index in range(len(self.ports)):
# bind to original driver
--
2.17.1
More information about the dts
mailing list