[dts][PATCH] tests/power_telemetry: update to add runpath to query tool args
Karen Kelly
karen.kelly at intel.com
Fri Jun 30 19:27:56 CEST 2023
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 at 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
More information about the dts
mailing list