From patchwork Fri Jun 30 17:27:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karen Kelly X-Patchwork-Id: 129170 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3F9E542D98; Fri, 30 Jun 2023 19:29:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3A334410FC; Fri, 30 Jun 2023 19:29:02 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id D4C2440EDB for ; Fri, 30 Jun 2023 19:29:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688146141; x=1719682141; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=QuP0j6vsmQeZuZEtn5zKPWoUXQqOxA2DI6qGlqODtDQ=; b=mIUfWjehIsizgU6sK7aFxpD2qpBXPjanLxWx9uPewqHgjkRuR22uirGy yFDzGD2WMYzBAaEkotVfM70yTs6r05O5PLxSkiM8ZnZZk6TxCHG3/0HbI wnkxPfZzkpBwZcZCQqtsPI5MHv7XUEVlg0LmUi0ZLbQqlW/InHDapUVa1 3fQIWe2lyYix/guqXxnTTPy8AZ7gb69FWs9upY3ehEiOFYM0DA4qFzoEK 8NqPqE8aeujIWA80PDNvJqeAlu5NkVNwMSwe3At/77m3J9ptnKUuU/9vp 14x051la7xOJXyFKBc+C3KimSa91nf4lBuAfvc4zUdbVoDEpXi4vfTbd2 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="365026222" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="365026222" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Jun 2023 10:28:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10757"; a="695086253" X-IronPort-AV: E=Sophos;i="6.01,171,1684825200"; d="scan'208";a="695086253" Received: from silpixa00400354.ir.intel.com (HELO silpixa00400354.ger.corp.intel.com) ([10.237.213.67]) by orsmga006.jf.intel.com with ESMTP; 30 Jun 2023 10:28:06 -0700 From: Karen Kelly To: dts@dpdk.org Cc: reshma.pattan@intel.com, karen.kelly@intel.com Subject: [dts][PATCH] tests/power_telemetry: update to add runpath to query tool args Date: Fri, 30 Jun 2023 17:27:56 +0000 Message-Id: <20230630172756.128108-1-karen.kelly@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 Telemetry test creates query_tool.py. Due to changes to dpdk_telemetry_client.py, query_tool.py needed to be updated to take in the value of the runpath. Signed-off-by: Karen Kelly Acked-by: Reshma Pattan --- tests/TestSuite_power_telemetry.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_power_telemetry.py b/tests/TestSuite_power_telemetry.py index 9ddf7992..d6a7efd4 100644 --- a/tests/TestSuite_power_telemetry.py +++ b/tests/TestSuite_power_telemetry.py @@ -154,6 +154,8 @@ class TestPowerTelemetry(TestCase): import json from dpdk_telemetry_client import Client, GLOBAL_METRICS_REQ, BUFFER_SIZE + RUN_TIME_PATH = "/var/run/dpdk/rte" + class ClientExd(Client): def __init__(self, json_file): super(ClientExd, self).__init__() @@ -176,11 +178,16 @@ class TestPowerTelemetry(TestCase): nargs='*', default=None, help='json_file option') + parser.add_argument('-r', + '--run_time_path', + nargs='*', + default=RUN_TIME_PATH, + help='run time path option') args = parser.parse_args() file_path = args.file_prefix[0] client = ClientExd(args.json_file[0]) client.getFilepath(file_path) - client.setRunpath(file_path) + client.setRunpath(args.run_time_path) client.register() client.requestGlobalMetrics() time.sleep(2)