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 B1CF4A0C4A; Tue, 13 Jul 2021 08:49:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A6CDB411BD; Tue, 13 Jul 2021 08:49:10 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 09ECF4069E for ; Tue, 13 Jul 2021 08:49:08 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10043"; a="273941148" X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="273941148" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jul 2021 23:49:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,235,1620716400"; d="scan'208";a="492636051" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by FMSMGA003.fm.intel.com with ESMTP; 12 Jul 2021 23:49:05 -0700 Received: from shsmsx603.ccr.corp.intel.com (10.109.6.143) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Mon, 12 Jul 2021 23:49:05 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX603.ccr.corp.intel.com (10.109.6.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 13 Jul 2021 14:49:03 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2242.010; Tue, 13 Jul 2021 14:49:03 +0800 From: "Tu, Lijuan" To: "Huang, ZhiminX" , "dts@dpdk.org" CC: "Huang, ZhiminX" Thread-Topic: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:adapt testpmd output info Thread-Index: AQHXd5+I8Cg18BUPFECEY8SJNljvMqtAdcIw Date: Tue, 13 Jul 2021 06:49:03 +0000 Message-ID: <474b1f0a6dc645abb6598f00d3b879ee@intel.com> References: <20210713130133.445-1-zhiminx.huang@intel.com> In-Reply-To: <20210713130133.445-1-zhiminx.huang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.5.1.3 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" > -----Original Message----- > From: dts On Behalf Of Zhimin Huang > Sent: 2021=1B$BG/=1B(B7=1B$B7n=1B(B13=1B$BF|=1B(B 21:02 > To: dts@dpdk.org > Cc: Huang, ZhiminX > Subject: [dts] [PATCH V1] tests/enable_package_download_in_ice_driver:ada= pt > testpmd output info >=20 > *.fix code to adapt testpmd output information Could you please explain more details? Sorry, I can't get the key point. Btw, I see the similar handle in tests/TestSuite_iavf_package_driver_error_= handle.py >=20 > Signed-off-by: Zhimin Huang > --- > tests/TestSuite_enable_package_download_in_ice_driver.py | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > 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 =3D self.dut_testpmd.start_testpmd("all", "--nb-cores=3D8 --= rxq=3D%s -- > txq=3D%s --port-topology=3Dchained" % (self.PF_QUEUE, self.PF_QUEUE), > eal_param=3Dself.eal_param) > if ice_pkg =3D=3D "false": > if safe_mode_support =3D=3D "true": > - error_messages =3D ["ice_load_pkg(): failed to allocate = buf of size 0 for > package", \ > + error_messages =3D ["ice_load_pkg(): ice_copy_and_init_h= w > + failed: -1", \ > "ice_dev_init(): Failed to load the DDP package,Ente= ring Safe Mode", > \ > "ice_init_rss(): RSS is not supported in safe mode"] > if safe_mode_support =3D=3D "false": > - error_messages =3D ["ice_load_pkg(): failed to allocate = buf of size 0 for > package", \ > + error_messages =3D ["ice_load_pkg(): ice_copy_and_init_h= w > + failed: -1", \ > "ice_dev_init(): Failed to load the DDP package,Use = safe-mode- > support=3D1 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=3D"false") > cmd =3D self.path + "-c 0x7 -n 4 -- -i --nb-cores=3D8 --rxq=3D%s= --txq=3D%s --port- > topology=3Dchained" % (self.PF_QUEUE, self.PF_QUEUE) > out =3D self.dut.send_expect(cmd, "#", 60) > - error_messages =3D ["ice_load_pkg(): failed to allocate buf of s= ize 0 for > package", \ > + error_messages =3D ["ice_load_pkg(): ice_copy_and_init_hw failed= : > + -1", \ > "ice_dev_init(): Failed to load the DDP package,Use safe= -mode- > support=3D1 to enter Safe Mode"] > for error_message in error_messages: > self.verify(error_message in out, "There should be '%s' in o= ut: %s" % > (error_message, out)) > -- > 2.17.1