From patchwork Tue Sep 8 07:18:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhou, JunX W" X-Patchwork-Id: 76848 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 7E956A04AA; Tue, 8 Sep 2020 09:29:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7571D1C0D5; Tue, 8 Sep 2020 09:29:43 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id B88052BAB for ; Tue, 8 Sep 2020 09:29:41 +0200 (CEST) IronPort-SDR: Y+7z90FcluXNUObA/2SCSZ/OE27hV653+TimhqJURc5o30NmmJOqj931qFBWyR7WZW3L9Qz/3V tfKy46KHmpQw== X-IronPort-AV: E=McAfee;i="6000,8403,9737"; a="219646580" X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="219646580" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Sep 2020 00:29:41 -0700 IronPort-SDR: LSC3xdeYNqLD0Rjgt+n4g2x9OFvP/4Lr51YwPM/C09BGM/9vSrZN8aEwJ69BA1e98mYW6QvpfM 4wyfy4feGxyg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,404,1592895600"; d="scan'208";a="377432681" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by orsmga001.jf.intel.com with ESMTP; 08 Sep 2020 00:29:40 -0700 From: "Zhou, Jun" To: dts@dpdk.org Cc: Zhou jun Date: Tue, 8 Sep 2020 07:18:00 +0000 Message-Id: <20200908071825.118583-14-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200908071825.118583-1-junx.w.zhou@intel.com> References: <20200908071825.118583-1-junx.w.zhou@intel.com> MIME-Version: 1.0 Subject: [dts] [dts 13/38] tests/TestSuite_keep_alive.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" From: Zhou jun Signed-off-by: Zhou jun --- tests/TestSuite_keep_alive.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_keep_alive.py b/tests/TestSuite_keep_alive.py index 1cab9c8..7bee4f0 100644 --- a/tests/TestSuite_keep_alive.py +++ b/tests/TestSuite_keep_alive.py @@ -51,8 +51,7 @@ class TestKeepAlive(TestCase): self.verify(len(self.dut_ports) >= 2, "Insufficient ports") cores = self.dut.get_core_list("1S/4C/1T") self.coremask = utils.create_mask(cores) - - self.path = "./examples/l2fwd-keepalive/build/l2fwd-keepalive" + self.app_l2fwd_keepalive_path = self.dut.apps_name['l2fwd-keepalive'] # build sample app out = self.dut.build_dpdk_apps("./examples/l2fwd-keepalive") @@ -69,7 +68,7 @@ class TestKeepAlive(TestCase): """ Verify netmap compatibility with one port """ - cmd = self.path + " -c f -n 4 -- -q 8 -p ffff -K 10" + cmd = self.app_l2fwd_keepalive_path + " -c f -n 4 -- -q 8 -p ffff -K 10" self.dut.send_expect(cmd,"Port statistics",60)