summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-05-19 03:35:51 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-05-19 03:35:51 +0300
commite2addf2f93f8f16da00180fb906d90dff036cfc0 (patch)
tree9411b35ee69fa0ab8c491dbce4af0856bf8ff382 /scripts
parent25b143866ed3fd3939d3d8d91d84b09ac21cda4d (diff)
regression: rx_test fix
Diffstat (limited to 'scripts')
-rw-r--r--scripts/automation/regression/stateless_tests/stl_rx_test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py
index a7ff303e..306b40ed 100644
--- a/scripts/automation/regression/stateless_tests/stl_rx_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py
@@ -19,7 +19,7 @@ class STLRX_Test(CStlGeneral_Test):
port_info = self.c.get_port_info(ports = self.rx_port)[0]
cap = port_info['rx']['caps']
- print cap
+ print(port_info)
if "flow_stats" not in cap or "latency" not in cap:
self.skip('port {0} does not support RX'.format(self.rx_port))
self.cap = cap
@@ -119,12 +119,12 @@ class STLRX_Test(CStlGeneral_Test):
# one simple stream on TX --> RX
def test_multiple_streams(self):
- num_latency_streams = 128
- num_flow_stat_streams = 127
- total_pkts = int(self.total_pkts / num_latency_streams)
+ num_latency_streams = 110
+ num_flow_stat_streams = 110
+ total_pkts = int(self.total_pkts / num_latency_streams) / 2
if total_pkts == 0:
total_pkts = 1
- percent = float(self.rate_percent) / num_latency_streams
+ percent = float(self.rate_percent) / num_latency_streams / 2
try:
streams = []