From patchwork Fri Sep 4 08:18:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 76534 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 22C82A04B1; Fri, 4 Sep 2020 10:17:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6BD821C194; Fri, 4 Sep 2020 10:17:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id C5EF41C136 for ; Fri, 4 Sep 2020 10:17:56 +0200 (CEST) IronPort-SDR: enpR1+KYA4CFewV2luMs329MHGxmXWDgMxfXUiadysu8zOTcw1ci55gjn+J2d74+dK/NYn3lcq VZY9UDOd3C2g== X-IronPort-AV: E=McAfee;i="6000,8403,9733"; a="242528907" X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="242528907" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2020 01:17:50 -0700 IronPort-SDR: DFLaGTIhRt1oKvKCNEuOx3vI9/c4WQQ7ZdxWO8dRj1GvBi1So57igS5wTNovAY4BrZS6Ibgcwm VpE5+2R+o0+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,389,1592895600"; d="scan'208";a="315782807" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 04 Sep 2020 01:17:49 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Fri, 4 Sep 2020 16:18:41 +0800 Message-Id: <1599207525-22123-34-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> References: <1599207525-22123-1-git-send-email-xix.zhang@intel.com> Subject: [dts] [dts 34/38] tests/TestSuite_queue_start_stop.py: 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" git add tests/TestSuite_softnic.py git git add tests/TestSuite_tso.py git commit -m tests/TestSuite_tso. Signed-off-by: xizhan4x --- tests/TestSuite_queue_start_stop.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index cb59c95..55264dc 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -65,6 +65,7 @@ class TestQueueStartStop(TestCase): """ self.ports = self.dut.get_ports(self.nic) self.verify(len(self.ports) >= 1, "Insufficient number of ports.") + self.path=self.dut.apps_name['test-pmd'] def set_up(self): """ @@ -82,7 +83,7 @@ class TestQueueStartStop(TestCase): try: self.dut.session.copy_file_to(patch_file, patch_dst) self.patch_hotfix_dpdk(patch_dst + "macfwd_log.patch", True) - self.dut.build_dpdk_apps('./app/test-pmd') + self.dut.build_install_dpdk(self.target) except Exception as e: raise IOError("dpdk setup failure: %s" % e) @@ -130,7 +131,7 @@ class TestQueueStartStop(TestCase): """ #dpdk start try: - self.dut.send_expect("./app/test-pmd/testpmd -c 0xf -n 4 -- -i --portmask=0x1 --port-topology=loop", "testpmd>", 120) + self.dut.send_expect("%s -c 0xf -n 4 -- -i --portmask=0x1 --port-topology=loop"%self.path, "testpmd>", 120) time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("start", "testpmd>")