From patchwork Sun Sep 27 02:39:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 78884 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 30CAEA04B0; Sun, 27 Sep 2020 04:38:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E86771D51D; Sun, 27 Sep 2020 04:38:30 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B5D5B1D51B for ; Sun, 27 Sep 2020 04:38:29 +0200 (CEST) IronPort-SDR: QyZKzJhZzrwcy8iQ7naGyBSsftnW3v0KWiWO5E6/MKMJbyuj2K2rGT4Jrq0RI0ceOrT/lzHbRZ JKnqp7I9ZEjQ== X-IronPort-AV: E=McAfee;i="6000,8403,9756"; a="162724073" X-IronPort-AV: E=Sophos;i="5.77,308,1596524400"; d="scan'208";a="162724073" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2020 19:38:26 -0700 IronPort-SDR: Def/YeUA4uHkjW45CbZGlzJYAhfY82toed32AjLp1tKlRjy1QVFBVpr2oPMAwtAhJ75CokahLr gheV5hpcLakw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,308,1596524400"; d="scan'208";a="323875217" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 26 Sep 2020 19:38:25 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Sun, 27 Sep 2020 10:39:51 +0800 Message-Id: <1601174391-7559-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [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 Signed-off-by: xizhan4x Tested-by: Zhang, XiX --- tests/TestSuite_cbdma.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 = self.dut.new_session("new_session") def get_core_list(self): """ @@ -140,7 +141,6 @@ class TestCBDMA(TestCase): num is 2 ''' # flush other output - self.send_session=self.dut.new_session("new_session") target = self.app_path.split("/") self.send_session.send_expect(f"cd {'/'.join(target[0:-1])} ", '# ') self.send_session.get_session_before(timeout=1) @@ -310,7 +310,7 @@ class TestCBDMA(TestCase): ports=dev_info, prefix='cbdma') self.launch_ioatfwd_app(eal_params) self.send_and_verify_throughput(check_channel=True) - self.dut.send_expect('^c', '# ') + self.send_session.send_expect('^c', '# ') self.result_table_print() 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=False) - self.dut.send_expect('^c', '# ') + self.send_session.send_expect('^c', '# ') self.cbdma_updating_mac = 'disable' self.launch_ioatfwd_app(eal_params) self.send_and_verify_throughput(check_channel=False) @@ -353,7 +353,7 @@ class TestCBDMA(TestCase): self.launch_ioatfwd_app(eal_params) self.send_and_verify_throughput(check_channel=False) - self.dut.send_expect('^c', '# ') + self.send_session.send_expect('^c', '# ') self.cbdma_copy_mode = 'sw' self.launch_ioatfwd_app(eal_params) self.send_and_verify_throughput(check_channel=False) @@ -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() def tear_down_all(self):