From: Karen Kelly <karen.kelly@intel.com>
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 [thread overview]
Message-ID: <20230630172756.128108-1-karen.kelly@intel.com> (raw)
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 <karen.kelly@intel.com>
---
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)
--
2.34.1
next reply other threads:[~2023-06-30 17:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-30 17:27 Karen Kelly [this message]
2023-07-10 8:29 ` Pattan, Reshma
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230630172756.128108-1-karen.kelly@intel.com \
--to=karen.kelly@intel.com \
--cc=dts@dpdk.org \
--cc=reshma.pattan@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).