From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A30F241C5D; Fri, 10 Feb 2023 08:55:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6E7EC40EE6; Fri, 10 Feb 2023 08:55:01 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 3135F40EE3 for ; Fri, 10 Feb 2023 08:55:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676015700; x=1707551700; h=from:to:cc:subject:date:message-id; bh=GCBSjRbMX02GNYcqGTp40GW0ltn5kFFGRwGakoXZw84=; b=TUGBbdzftq5LnbXiUruTq/72x3b1a09q50JZixvEZnYSeKZf2G8vDdER E8SgU+FCqnWfd+dL3B175uvuDY1cDNHrgsS2zfPAYb4rvar1CLFzR7I9e 96u6GrjiIfedvwvF/9Wqcham2Q6tLS+fZ+GdWqH5WipczYoizRsw6qwzN umdfbCMTiMO+UoL8NAoqUAj4NzGGzDM1Rzs9cWigzdeVc5iKc7kohNthL Z/avu2T5xgbNjxsK/bGM1DIq7qicEdwDHCBn51jnrTlDH+yP4+0Gj1/Cl 9/1m0lgXcXx5AHAd7QRGQ2J7rpEGFQQmNbaIZWyTsiuodlmvXwiy6y4mN Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="416589167" X-IronPort-AV: E=Sophos;i="5.97,286,1669104000"; d="scan'208";a="416589167" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2023 23:54:59 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="698337690" X-IronPort-AV: E=Sophos;i="5.97,286,1669104000"; d="scan'208";a="698337690" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2023 23:54:57 -0800 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1] tests/telemetry: update file_prefix according to dpdk changes Date: Fri, 10 Feb 2023 01:51:25 -0500 Message-Id: <20230210065125.9955-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 according to dpdk commit a15fc792cf (usertools/telemetry: add file prefix argument) update file_prefix in telemetry client Signed-off-by: Lingli Chen --- tests/TestSuite_telemetry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_telemetry.py b/tests/TestSuite_telemetry.py index 736ae7ed..ca2d74f5 100644 --- a/tests/TestSuite_telemetry.py +++ b/tests/TestSuite_telemetry.py @@ -420,11 +420,11 @@ class TestTelemetry(TestCase): def change_run_fileprefix(self, out): self.get_file_prefix(out) if self.file_prefix: - cmd1 = 'sed -i \'s/self.socket.send_fd.connect("\/var\/run\/dpdk\/.*\/telemetry")/self.socket.send_fd.connect("\/var\/run\/dpdk\/{0}\/telemetry")/g\' {1}'.format( + cmd1 = "sed -i 's/self.socket.send_fd.connect(self.run_path)/self.socket.send_fd.connect(\"\/var\/run\/dpdk\/{0}\/telemetry\")/g' {1}".format( self.file_prefix, os.path.join(self.target_dir, "usertools/dpdk-telemetry-client.py"), ) - cmd2 = 'sed -i \'s/self.socket.send_fd.connect("\/var\/run\/dpdk\/.*\/telemetry")/self.socket.send_fd.connect("\/var\/run\/dpdk\/{0}\/telemetry")/g\' {1}'.format( + cmd2 = "sed -i 's/self.socket.send_fd.connect(self.run_path)/self.socket.send_fd.connect(\"\/var\/run\/dpdk\/{0}\/telemetry\")/g' {1}".format( self.file_prefix, os.path.join(self.target_dir, "dpdk_telemetry_client.py"), ) -- 2.17.1