summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateful_tests/trex_rx_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/automation/regression/stateful_tests/trex_rx_test.py')
-rwxr-xr-xscripts/automation/regression/stateful_tests/trex_rx_test.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/automation/regression/stateful_tests/trex_rx_test.py b/scripts/automation/regression/stateful_tests/trex_rx_test.py
index a6cc4bc6..ac7ba592 100755
--- a/scripts/automation/regression/stateful_tests/trex_rx_test.py
+++ b/scripts/automation/regression/stateful_tests/trex_rx_test.py
@@ -70,7 +70,7 @@ class CTRexRx_Test(CTRexGeneral_Test):
error_tolerance = self.get_benchmark_param('error_tolerance')
if not error_tolerance or not allow_error_tolerance:
error_tolerance = 0
- error_percentage = float(total_errors) * 100 / total_rx
+ error_percentage = total_errors * 100.0 / total_rx
if total_errors > 0:
if self.is_loopback or error_percentage > error_tolerance:
@@ -98,19 +98,24 @@ class CTRexRx_Test(CTRexGeneral_Test):
p = True,
nc = True,
rx_check = sample_rate,
- d = 100,
+ d = 50,
f = 'avl/sfr_delay_10_1g_no_bundeling.yaml',
l = 1000,
k = 10,
learn_verify = True,
+ iom = 1,
l_pkt_mode = 2)
trex_res = self.trex.sample_to_run_finish()
print("\nLATEST RESULT OBJECT:")
print(trex_res)
- #print ("\nLATEST DUMP:")
- #print trex_res.get_latest_dump()
+ print ("\nLATEST DUMP:")
+ print trex_res.get_latest_dump()
+ cpu_util = trex_res.get_last_value("trex-global.data.m_cpu_util")
+ cpu_util_hist = trex_res.get_value_list("trex-global.data.m_cpu_util")
+ print("cpu util is:", cpu_util)
+ print(cpu_util_hist)
self.check_general_scenario_results(trex_res)
self.check_CPU_benchmark(trex_res)
@@ -238,6 +243,7 @@ class CTRexRx_Test(CTRexGeneral_Test):
l = 1000,
k = 10,
learn_verify = True,
+ iom = 1,
l_pkt_mode = 2)
print('Run for 40 seconds, expect no errors')