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 C9BAEA034F; Sun, 26 Apr 2020 12:45:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8EF721C034; Sun, 26 Apr 2020 12:45:00 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 70B151BF88 for ; Sun, 26 Apr 2020 12:44:59 +0200 (CEST) IronPort-SDR: 0mnlDhXaF+XGJqBZSKBlI9Z+xNOWItIbZc2TPRx4QfcRMTjQUOUFec6xOU9Vu/rhDI5Y4aHTPz 0lVFlgVDet7Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2020 03:44:59 -0700 IronPort-SDR: AsxTIsFlaVgplVlccIoNE/y4JEefzv5XcqaVMDytxeZXhCT6UKR3/tlv2VSKY3uBn/S7lNp90w FC+Kyu2d4rsw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,319,1583222400"; d="scan'208";a="335955426" Received: from unknown (HELO xqm-virtio_tester.sh.intel.com) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 26 Apr 2020 03:44:58 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Sun, 26 Apr 2020 18:38:45 +0800 Message-Id: <1587897525-114547-4-git-send-email-qimaix.xiao@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> References: <1587897525-114547-1-git-send-email-qimaix.xiao@intel.com> Subject: [dts] [PATCH V1 3/3]virtio_user_as_exceptional_path: set test nic to driver specified in cfg 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" Signed-off-by: Xiao Qimai --- tests/TestSuite_virtio_user_as_exceptional_path.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_virtio_user_as_exceptional_path.py b/tests/TestSuite_virtio_user_as_exceptional_path.py index 470e0de..35a0a98 100644 --- a/tests/TestSuite_virtio_user_as_exceptional_path.py +++ b/tests/TestSuite_virtio_user_as_exceptional_path.py @@ -48,6 +48,7 @@ class TestVirtioUserAsExceptionalPath(TestCase): # Get and verify the ports self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 1, "Insufficient ports for testing") + self.def_driver = self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() self.pci0 = self.dut.ports_info[0]['pci'] pf_info = self.dut_ports[0] netdev = self.dut.ports_info[pf_info]['port'] @@ -96,9 +97,8 @@ class TestVirtioUserAsExceptionalPath(TestCase): for i in self.dut_ports: port = self.dut.ports_info[i]['port'] port.bind_driver() - self.dut.send_expect( - "./usertools/dpdk-devbind.py -b igb_uio %s" % - self.pci, '#', 30) + bind_script_path = self.dut.get_dpdk_bind_script() + self.dut.send_expect('%s --bind=%s %s' % (bind_script_path, self.def_driver, self.pci), '# ') self.peer_pci_setup = True def launch_testpmd_vhost(self): -- 1.8.3.1