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 38D99A04B6; Mon, 12 Oct 2020 10:37:11 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2D60E1D630; Mon, 12 Oct 2020 10:37:10 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id D27651D5C1 for ; Mon, 12 Oct 2020 10:37:07 +0200 (CEST) IronPort-SDR: xLDWmYG2yEvFDNc2Y0VrMuQevXAm+XpW1qFlv7EJRHNGkhMQXgp2ByCJzxbTwQ8sf3csmpXFqG 8l8PXS0WMpaQ== X-IronPort-AV: E=McAfee;i="6000,8403,9771"; a="227353742" X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="227353742" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Oct 2020 01:37:05 -0700 IronPort-SDR: qqpKf9zllCRMA3yINfo5U8vwZTZGJWDZaRHhzJAcicgx+iGLLSe8/VDB97eKZo+wCy5NZuTpWw TbyytfHzJYRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,366,1596524400"; d="scan'208";a="299157484" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga007.fm.intel.com with ESMTP; 12 Oct 2020 01:37:05 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 12 Oct 2020 01:37:04 -0700 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX601.ccr.corp.intel.com (10.109.6.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Mon, 12 Oct 2020 16:37:02 +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.1713.004; Mon, 12 Oct 2020 16:37:02 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_cbdma:fixed-session-error Thread-Index: AQHWlHdfphueg5xAZkujB2BRCoHA0amTu7tQ Date: Mon, 12 Oct 2020 08:37:02 +0000 Message-ID: References: <1601174391-7559-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1601174391-7559-1-git-send-email-xix.zhang@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/TestSuite_cbdma:fixed-session-error 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" > fixed:session error >=20 > Signed-off-by: xizhan4x ... > + self.send_session =3D self.dut.new_session("new_session") Destroy your session when it finished his tasks, else it's running till dts= quit. It's bad to see resource waste. > -----Original Message----- > From: dts On Behalf Of xizhan4x > Sent: 2020=1B$BG/=1B(B9=1B$B7n=1B(B27=1B$BF|=1B(B 10:40 > To: dts@dpdk.org > Cc: Zhang, XiX > Subject: [dts] [PATCH V1] tests/TestSuite_cbdma:fixed-session-error >=20 > --- > tests/TestSuite_cbdma.py | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/tests/TestSuite_cbdma.py b/tests/TestSuite_cbdma.py index > 14611f0..9c5fc3a 100644 > --- a/tests/TestSuite_cbdma.py > +++ b/tests/TestSuite_cbdma.py > @@ -71,6 +71,7 @@ class TestCBDMA(TestCase): > self.table_header.append("Updating MAC") > self.table_header.append("% linerate") > self.result_table_create(self.table_header) > + self.send_session =3D self.dut.new_session("new_session") >=20 > def get_core_list(self): > """ > @@ -140,7 +141,6 @@ class TestCBDMA(TestCase): > num is 2 > ''' > # flush other output > - self.send_session=3Dself.dut.new_session("new_session") > target =3D self.app_path.split("/") > self.send_session.send_expect(f"cd {'/'.join(target[0:-1])} ", = '# ') > self.send_session.get_session_before(timeout=3D1) > @@ -310,7 +310,7 @@ class TestCBDMA(TestCase): > ports=3Ddev_info, prefix=3D'cbdm= a') > self.launch_ioatfwd_app(eal_params) > self.send_and_verify_throughput(check_channel=3DTrue) > - self.dut.send_expect('^c', '# ') > + self.send_session.send_expect('^c', '# ') > self.result_table_print() >=20 > def test_perf_cbdma_with_diff_update_mac(self): > @@ -330,7 +330,7 @@ class TestCBDMA(TestCase): > self.launch_ioatfwd_app(eal_params) > self.send_and_verify_throughput(check_channel=3DFalse) >=20 > - self.dut.send_expect('^c', '# ') > + self.send_session.send_expect('^c', '# ') > self.cbdma_updating_mac =3D 'disable' > self.launch_ioatfwd_app(eal_params) > self.send_and_verify_throughput(check_channel=3DFalse) > @@ -353,7 +353,7 @@ class TestCBDMA(TestCase): > self.launch_ioatfwd_app(eal_params) > self.send_and_verify_throughput(check_channel=3DFalse) >=20 > - self.dut.send_expect('^c', '# ') > + self.send_session.send_expect('^c', '# ') > self.cbdma_copy_mode =3D 'sw' > self.launch_ioatfwd_app(eal_params) > self.send_and_verify_throughput(check_channel=3DFalse) > @@ -363,7 +363,7 @@ class TestCBDMA(TestCase): > """ > Run after each test case. > """ > - self.dut.send_expect('^c', '# ') > + self.send_session.send_expect('^c', '# ') > self.dut.kill_all() >=20 > def tear_down_all(self): > -- > 1.8.3.1