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 05DD1A04C9; Wed, 16 Sep 2020 14:45:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E74641C2B7; Wed, 16 Sep 2020 14:45:05 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E33931C2F6 for ; Wed, 16 Sep 2020 14:45:04 +0200 (CEST) IronPort-SDR: AqjRqgEmjIqxE42ceyo6GJIYhzbJjDQkv0dZVvgGB4RM6LSqyyewsmzfkCvk5G+MyuBIFOZdf7 whIoobW66YJQ== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="160383170" X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="160383170" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 05:45:04 -0700 IronPort-SDR: 6oNa52eEDLecPfAcRfeQlf98RS4nO61HWhH+HahMHLZzniKcjT2bmOakjT2iJTEFJ7kae93Wiz uq5i0Lz73yoA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="409542364" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 16 Sep 2020 05:45:03 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: "Zhou, Jun" , Zhou@dpdk.org Date: Wed, 16 Sep 2020 12:29:49 +0000 Message-Id: <20200916122951.17646-9-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200916122951.17646-1-junx.w.zhou@intel.com> References: <20200916122951.17646-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1 08/10] tests/TestSuite_queue_start_stop.py:adapt to support both meson and makefile build 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" adapt to support both meson and makefile build Signed-off-by: Zhou, Jun --- 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 cb59c951..77b25607 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.app_testpmd_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.app_testpmd_path, "testpmd>", 120) time.sleep(5) self.dut.send_expect("set fwd mac", "testpmd>") self.dut.send_expect("start", "testpmd>") -- 2.25.1