From patchwork Tue Jul 13 13:01:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 95721 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7EFA2A0C4A; Tue, 13 Jul 2021 06:28:16 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 575B540DDE; Tue, 13 Jul 2021 06:28:16 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 4ADB34069E for ; Tue, 13 Jul 2021 06:28:14 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10043"; a="208277016" X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="208277016" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 21:28:12 -0700 X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="492561830" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 21:28:11 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Tue, 13 Jul 2021 21:01:33 +0800 Message-Id: <20210713130133.445-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:adapt testpmd output info X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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" *.fix code to adapt testpmd output infomation Signed-off-by: Zhimin Huang Tested-by: Zhimin Huang --- tests/TestSuite_enable_package_download_in_ice_driver.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py b/tests/TestSuite_enable_package_download_in_ice_driver.py index b57eb794..8bf21d18 100644 --- a/tests/TestSuite_enable_package_download_in_ice_driver.py +++ b/tests/TestSuite_enable_package_download_in_ice_driver.py @@ -99,11 +99,11 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): out = self.dut_testpmd.start_testpmd("all", "--nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE), eal_param=self.eal_param) if ice_pkg == "false": if safe_mode_support == "true": - error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \ + error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \ "ice_dev_init(): Failed to load the DDP package,Entering Safe Mode", \ "ice_init_rss(): RSS is not supported in safe mode"] if safe_mode_support == "false": - error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \ + error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \ "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"] for error_message in error_messages: self.verify(error_message in out, "There should be error messages in out: %s" % out) @@ -291,7 +291,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase): self.use_correct_ice_pkg(flag="false") 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", \ + error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \ "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"] for error_message in error_messages: self.verify(error_message in out, "There should be '%s' in out: %s" % (error_message, out))