test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH] tests/power_telemetry: update to add runpath to query tool args
@ 2023-06-30 17:27 Karen Kelly
  2023-07-10  8:29 ` Pattan, Reshma
  0 siblings, 1 reply; 2+ messages in thread
From: Karen Kelly @ 2023-06-30 17:27 UTC (permalink / raw)
  To: dts; +Cc: reshma.pattan, karen.kelly

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [dts][PATCH] tests/power_telemetry: update to add runpath to query tool args
  2023-06-30 17:27 [dts][PATCH] tests/power_telemetry: update to add runpath to query tool args Karen Kelly
@ 2023-07-10  8:29 ` Pattan, Reshma
  0 siblings, 0 replies; 2+ messages in thread
From: Pattan, Reshma @ 2023-07-10  8:29 UTC (permalink / raw)
  To: Kelly, Karen, dts



> -----Original Message-----
> From: Kelly, Karen <karen.kelly@intel.com>
> Subject: [dts][PATCH] tests/power_telemetry: update to add runpath to query
> tool args
> 
> 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>

Acked-by: Reshma Pattan <reshma.pattan@intel.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-10  8:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30 17:27 [dts][PATCH] tests/power_telemetry: update to add runpath to query tool args Karen Kelly
2023-07-10  8:29 ` Pattan, Reshma

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).