From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D2A24A0353; Mon, 4 Nov 2019 07:25:11 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 92E4D5B32; Mon, 4 Nov 2019 07:25:11 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0D8715681 for ; Mon, 4 Nov 2019 07:25:09 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Nov 2019 22:25:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,266,1569308400"; d="scan'208";a="231951268" Received: from ubuntu.sh.intel.com ([10.239.250.27]) by fmsmga002.fm.intel.com with ESMTP; 03 Nov 2019 22:25:07 -0800 From: Peng Zhihong To: dts@dpdk.org Cc: Peng Zhihong Date: Mon, 4 Nov 2019 14:21:09 +0800 Message-Id: <20191104062109.15705-1-zhihongx.peng@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] Before the exception exit, it needs to be re-bound to the DPDK. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Before the exception exit, it needs to be re-bound to the DPDK. Signed-off-by: Peng Zhihong --- 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