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 AC8C0A00C2; Wed, 22 Apr 2020 07:44:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70F0C1C226; Wed, 22 Apr 2020 07:44:48 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id DC6D41C0D1 for ; Wed, 22 Apr 2020 07:44:46 +0200 (CEST) IronPort-SDR: B/tnZ8BBhyEZQcl6xSIvKBMKnAloHO5f/zQxl13H0URbrHScuujxtVR2xgGYBbNxospnEYoDma AQ04dru081/g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2020 22:44:44 -0700 IronPort-SDR: HVVcHvDV8B/3HDKqasd+cetKoXQZPseO1Rhp22DV9ugRGyWjiYf4Y2JBWlvqvPOWCGbmJq5fun K0Y7Tm6LcGVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,412,1580803200"; d="scan'208";a="273771331" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga002.jf.intel.com with ESMTP; 21 Apr 2020 22:44:43 -0700 From: "Xie,WeiX" To: dts@dpdk.org Cc: "Xie,WeiX" Date: Wed, 22 Apr 2020 13:38:26 +0800 Message-Id: <1587533906-380636-1-git-send-email-weix.xie@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1]softnic: restore nic driver after test finished 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" From: "Xie,WeiX" *. restore nic drivers after case end to avoid interfere other cases Signed-off-by: Xie,WeiX --- 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