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 1FEEEA04B5; Fri, 11 Sep 2020 04:59:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 193961C0B9; Fri, 11 Sep 2020 04:59:55 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 7303C1B9B7 for ; Fri, 11 Sep 2020 04:59:53 +0200 (CEST) IronPort-SDR: q4pjfzr8/RSKV4e7CvKu4BqbxEYsEjK3HIz6yt3KtcJeZ9psh4+L++vX8QE4auG+9+aI//3gld aveU4OrhGVyw== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="222881662" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="222881662" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 19:59:53 -0700 IronPort-SDR: kVuMoNyaQux/fEOwdsQp7KwOKPoYviNEOXxZfWpyCQep9Mf2Rb448jzFwVpxin/Ml42XPYq5W/ ysD1tctQ6q3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="318135475" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 10 Sep 2020 19:59:51 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Fri, 11 Sep 2020 10:57:55 +0800 Message-Id: <20200911025758.9246-3-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com> References: <20200911025758.9246-1-weix.xie@intel.com> Subject: [dts] [PATCH V1 2/5] tests/TestSuite_enable_package_download_in_ice_driver:support meson build method 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: Xie wei --- tests/TestSuite_enable_package_download_in_ice_driver.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py b/tests/TestSuite_enable_package_download_in_ice_driver.py index 5364975..b57eb79 100644 --- a/tests/TestSuite_enable_package_download_in_ice_driver.py +++ b/tests/TestSuite_enable_package_download_in_ice_driver.py @@ -53,6 +53,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): self.dut_p0_mac = self.dut.get_mac_address(self.dut_ports[0]) self.tester_p0_mac = self.tester.get_mac(localPort0) self.dut_testpmd = PmdOutput(self.dut) + self.path = self.dut.apps_name['test-pmd'] self.pkg_file1 = '/lib/firmware/intel/ice/ddp/ice.pkg' self.pkg_file2 = '/lib/firmware/updates/intel/ice/ddp/ice.pkg' @@ -288,7 +289,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): use wrong ice.pkg and start testpmd without "safe-mode-suppor", no port is loaded in testpmd """ self.use_correct_ice_pkg(flag="false") - cmd = "./%s/app/testpmd -c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.target, self.PF_QUEUE, self.PF_QUEUE) + cmd = self.path + "-c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE) out = self.dut.send_expect(cmd, "#", 60) error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \ "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"] @@ -340,7 +341,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): self.generate_delete_specify_pkg(pkg_ver=self.new_pkgs[i], sn=self.nic_sn[i], key="true") eal_param = "-w %s " % self.nic_pci[0] + "-w %s " % self.nic_pci[1] + "--log-level=8" - out = self.dut_testpmd.execute_cmd("./%s/app/testpmd %s -- -i " % (self.target, eal_param)) + out = self.dut_testpmd.execute_cmd(self.path + eal_param + " -- -i ") self.dut_testpmd.quit() # Delete ice-.pkg to recover the ENV -- 2.17.1