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 A8F44A046B for ; Fri, 23 Aug 2019 10:09:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61AC51BF83; Fri, 23 Aug 2019 10:09:36 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 916DC1BF7E for ; Fri, 23 Aug 2019 10:09:34 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2019 01:09:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,420,1559545200"; d="scan'208";a="173412924" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.116.235]) by orsmga008.jf.intel.com with ESMTP; 23 Aug 2019 01:09:32 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Fri, 23 Aug 2019 07:55:07 +0800 Message-Id: <1566518107-57554-1-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH] tests: modify the cmd of tester bind driver 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" add "--force" in binding command to allow active links to be bind, and modify the bind back cmd Signed-off-by: Xinfeng Zhao --- tests/TestSuite_vf_port_start_stop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_port_start_stop.py b/tests/TestSuite_vf_port_start_stop.py index 7cb797b..2ff2d1c 100644 --- a/tests/TestSuite_vf_port_start_stop.py +++ b/tests/TestSuite_vf_port_start_stop.py @@ -85,7 +85,7 @@ class TestVfPortStartStop(TestCase): self.tester_tx_pci = self.tester.ports_info[self.tester_tx_port]['pci'] port = self.tester.ports_info[self.tester_tx_port]['port'] self.tester_port_driver = port.get_nic_driver() - self.tester.send_expect("./dpdk-devbind.py --bind=igb_uio %s" % self.tester_tx_pci, "#") + self.tester.send_expect("./dpdk-devbind.py --force --bind=igb_uio %s" % self.tester_tx_pci, "#") src_mac = self.tester.get_mac(self.tester_tx_port) if src_mac == 'N/A': @@ -245,7 +245,7 @@ class TestVfPortStartStop(TestCase): self.pktgen_kill() if getattr(self, 'tester_port_driver', None) and \ getattr(self, 'tester_tx_pci', None): - self.tester.send_expect("./dpdk_nic_bind.py --bind=%s %s" \ + self.tester.send_expect("./dpdk-devbind.py --bind=%s %s" \ %(self.tester_port_driver, self.tester_tx_pci), "#") tx_interface = self.tester.get_interface(self.tester_tx_port) self.tester.send_expect("ifconfig %s up" % tx_interface, "#") -- 2.17.1