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 656DBA04E7; Mon, 2 Nov 2020 10:38:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1C359BE4B; Mon, 2 Nov 2020 10:38:05 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 06E4DBE65 for ; Mon, 2 Nov 2020 10:38:02 +0100 (CET) IronPort-SDR: y4F41231xLp2CcZxKbW2wEN/upTJ3vh9hMitHXJHNnYkKgtyq+TRkRdYdtwVLMRQDMtBdwApED oFsos3KULELg== X-IronPort-AV: E=McAfee;i="6000,8403,9792"; a="168957356" X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="168957356" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 01:38:01 -0800 IronPort-SDR: r2HngmtEt5jAxE2agpRRlUln05TapMRWPx2oq12FXisq5G87s0qY9u3GBdP5DT0nJNNDLWYbap 8t2JOQ7U78TA== X-IronPort-AV: E=Sophos;i="5.77,444,1596524400"; d="scan'208";a="537952232" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 01:37:59 -0800 From: "Zhou, Jun" To: dts@dpdk.org Cc: "Zhou, Jun" , Zhou@dpdk.org Date: Mon, 2 Nov 2020 17:40:16 +0800 Message-Id: <20201102094016.14389-1-junx.w.zhou@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_packet_capture: adapt meson 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 meson build Signed-off-by: Zhou, Jun --- tests/TestSuite_packet_capture.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py index 9c2a3097..4b980558 100644 --- a/tests/TestSuite_packet_capture.py +++ b/tests/TestSuite_packet_capture.py @@ -825,17 +825,9 @@ class TestPacketCapture(TestCase): self.dut.skip_setup = False self.dut.build_install_dpdk(self.target) # secondary process (dpdk-pdump) - self.pdump_dir = self.target_dir + os.sep + \ - "%s/build/app/pdump/" % self.target - cmd = "ls {0} -F | grep '*'".format(self.pdump_dir) - exe_files = self.dut.alt_session.send_expect(cmd, "# ").splitlines() - if len(exe_files) == 1: - self.tool_name = exe_files[0][:-1] - else: - self.verify(False, "tool name exception !") + self.dut_dpdk_pdump_dir = self.dut.apps_name['pdump'] + self.tool_name = self.dut_dpdk_pdump_dir.split('/')[-1] self.session_ex = self.dut.new_session(self.tool_name) - self.dut_dpdk_pdump_dir = self.target_dir + os.sep + \ - "%s/app/%s" % (self.target, self.tool_name) self.dpdk_pdump = self.dut_dpdk_pdump_dir + \ " -v --file-prefix=test -- --pdump " self.send_pcap = os.sep.join([self.pdump_log, "scapy_%s_%s_%d.pcap"]) -- 2.17.1