From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DF2C6A0C4B; Tue, 13 Jul 2021 13:05:25 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BE8DB410DF; Tue, 13 Jul 2021 13:05:25 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 1ED1140C35 for ; Tue, 13 Jul 2021 13:05:23 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10043"; a="295788647" X-IronPort-AV: E=Sophos;i="5.84,236,1620716400"; d="scan'208";a="295788647" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 04:05:15 -0700 X-IronPort-AV: E=Sophos;i="5.84,236,1620716400"; d="scan'208";a="503058310" Received: from unknown (HELO localhost.localdomain) ([10.240.183.103]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 04:05:12 -0700 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Date: Wed, 14 Jul 2021 03:38:30 +0800 Message-Id: <20210713193830.8864-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/enable_package_download_in_ice_driver:modify code to adapt dpdk changed 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" according to dpdk commit id: 40edb9c0d36b781d711fabb91e250dca8fa6bd99, the error log changed by start testpmd with wrong pkg. Signed-off-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)) -- 2.17.1