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 C0306A04B0; Thu, 13 Aug 2020 09:48:26 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9BF091C0AD; Thu, 13 Aug 2020 09:48:26 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9935C1C021 for ; Thu, 13 Aug 2020 09:48:24 +0200 (CEST) IronPort-SDR: ahQjPpoDM1mVRfT0ZVfXWtouM0r4ZV43XKK35CMXCx4QDkMgpweeSyg3pwA93L3FRYJilOxF// ZqZktw/gvQGw== X-IronPort-AV: E=McAfee;i="6000,8403,9711"; a="142016863" X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="142016863" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Aug 2020 00:48:23 -0700 IronPort-SDR: CWAlZ+cSf59uUTHVcgvioeT7nWpMwEYvGC1t2Cbty1KM7uOnYcn13FeZpAmnQtNoFD81f+xuJQ FaM33zGAU7xw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,307,1592895600"; d="scan'208";a="399088803" Received: from unknown (HELO localhost.localdomain) ([10.240.183.52]) by fmsmga001.fm.intel.com with ESMTP; 13 Aug 2020 00:48:22 -0700 From: Xiao Qimai To: dts@dpdk.org Cc: Xiao Qimai Date: Thu, 13 Aug 2020 07:33:46 +0000 Message-Id: <20200813073346.41991-1-qimaix.xiao@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1]tests/packet_capture: fix testpmd file-prefix for pdump 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" *. pdump depends on same file prefix with testpmd, as start_testpmd method in pmd_output module will attach pid and timestamp in file-prefix by default, need set fixed_prefix to True. Signed-off-by: Xiao Qimai --- tests/TestSuite_packet_capture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_packet_capture.py b/tests/TestSuite_packet_capture.py index 6a6a5ea..9c2a309 100644 --- a/tests/TestSuite_packet_capture.py +++ b/tests/TestSuite_packet_capture.py @@ -451,7 +451,7 @@ class TestPacketCapture(TestCase): "rm -fr {0}/*".format(self.pdump_log), "# ", 10) param_opt = "--port-topology=chained" eal_param = '--file-prefix=test' - self.testpmd.start_testpmd("Default", param=param_opt, + self.testpmd.start_testpmd("Default", param=param_opt, fixed_prefix=True, eal_param=eal_param) self.testpmd.execute_cmd("set fwd io") self.testpmd.execute_cmd("start") -- 2.25.1