aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/CpuUtils.py
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2023-12-07 13:52:09 +0100
committerVratko Polak <vrpolak@cisco.com>2023-12-07 13:52:09 +0100
commit679e03755af02a6eafd87a25543c652ae7bba3ee (patch)
treec2c3c50f65f3fcfadaa3f9159e573fce5c2845e3 /resources/libraries/python/CpuUtils.py
parent97cedafe3b50a543a0e5c9f5a8d9fdb932f4a142 (diff)
fix(CpuUtils): correct robot variable names
Fixes: 76fcd8422842d0756338502213de561eaa93e670 Change-Id: Ie642aeed5c55d479e0e4b87be965b4b5f70d6612 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources/libraries/python/CpuUtils.py')
-rw-r--r--resources/libraries/python/CpuUtils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/libraries/python/CpuUtils.py b/resources/libraries/python/CpuUtils.py
index 7840b5fa6c..c77d0f83b1 100644
--- a/resources/libraries/python/CpuUtils.py
+++ b/resources/libraries/python/CpuUtils.py
@@ -524,15 +524,15 @@ class CpuUtils:
continue
# Number of Data Plane physical cores.
dp_cores_count = BuiltIn().get_variable_value(
- "${{dp_cores_count}}", phy_cores
+ "${dp_cores_count}", phy_cores
)
# Number of Feature Plane physical cores.
fp_cores_count = BuiltIn().get_variable_value(
- "${{fp_cores_count}}", phy_cores - dp_cores_count
+ "${fp_cores_count}", phy_cores - dp_cores_count
)
# Ratio between RX queues and data plane threads.
rxq_ratio = BuiltIn().get_variable_value(
- "${{rxq_ratio}}", 1
+ "${rxq_ratio}", 1
)
dut_pf_keys = BuiltIn().get_variable_value(
@@ -540,7 +540,7 @@ class CpuUtils:
)
# SMT override in case of non standard test cases.
smt_used = BuiltIn().get_variable_value(
- "${{smt_used}}", CpuUtils.is_smt_enabled(node["cpuinfo"])
+ "${smt_used}", CpuUtils.is_smt_enabled(node["cpuinfo"])
)
cpu_node = Topology.get_interfaces_numa_node(node, *dut_pf_keys)