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 7A74CA00C5; 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 67E331BF92; 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 BB0EF1BFEF for ; Sun, 26 Apr 2020 12:44:58 +0200 (CEST) IronPort-SDR: dGIiQaan09mzoJamgP+vKHL90+NFPHqzQSsZcjwTqRRElzma9tDGDZpYjya4bguq5EB5vmZncP D/jxLGaEIbZg== 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:57 -0700 IronPort-SDR: 1Tm9fVRMKYBhdAMedNrbdxh310RBnO4PSX0mW7udF7CsMnwZFpSDRi1sVt1t+lp83lgrnF/wWY MgPFnPoqTI/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,319,1583222400"; d="scan'208";a="335955419" 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:56 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Sun, 26 Apr 2020 18:38:44 +0800 Message-Id: <1587897525-114547-3-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 2/3]dpdk_gso_lib: 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_dpdk_gso_lib.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py index 4839ab2..72b1372 100644 --- a/tests/TestSuite_dpdk_gso_lib.py +++ b/tests/TestSuite_dpdk_gso_lib.py @@ -54,6 +54,7 @@ class TestDPDKGsoLib(TestCase): # unbind the port which config in ports.cfg self.dut_ports = self.dut.get_ports() + self.def_driver = self.dut.ports_info[self.dut_ports[0]]['port'].get_nic_driver() for i in self.dut_ports: port = self.dut.ports_info[i]['port'] port.bind_driver() @@ -67,9 +68,8 @@ class TestDPDKGsoLib(TestCase): and len(self.peer_pci) != 0 and len(self.nic_in_kernel) != 0, 'Pls config the direct connection info in vhost_peer_conf.cfg') - 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), '# ') # get the numa info about the pci info which config in peer cfg bus = int(self.pci[5:7], base=16) @@ -262,7 +262,7 @@ class TestDPDKGsoLib(TestCase): time.sleep(5) try: - self.vm1_dut = self.vm1.start(load_config=False) + self.vm1_dut = self.vm1.start(load_config=False, set_target=False) if self.vm1_dut is None: raise Exception("Set up VM ENV failed") except Exception as e: -- 1.8.3.1