summaryrefslogtreecommitdiffstats
path: root/scripts/automation/regression/stateless_tests
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-04-16 02:06:52 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-04-16 02:06:52 +0300
commitf91190c71d0a2550364fdce909df297405fb5e43 (patch)
treec6ccb6f26070437151866d22e7f44efce0121bbd /scripts/automation/regression/stateless_tests
parent9c1dfed4edc4a4d3f51fc7f9ac9cab58657ab818 (diff)
python3 further fixes
Diffstat (limited to 'scripts/automation/regression/stateless_tests')
-rw-r--r--scripts/automation/regression/stateless_tests/stl_client_test.py2
-rw-r--r--scripts/automation/regression/stateless_tests/stl_rx_test.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_client_test.py b/scripts/automation/regression/stateless_tests/stl_client_test.py
index 6308e203..e7c9bb5d 100644
--- a/scripts/automation/regression/stateless_tests/stl_client_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_client_test.py
@@ -248,7 +248,7 @@ class STLClient_Test(CStlGeneral_Test):
for profile in self.profiles:
- print("now testing profile {0}...\n").format(profile)
+ print("now testing profile {0}...\n".format(profile))
p1 = STLProfile.load(profile, port_id = self.tx_port)
p2 = STLProfile.load(profile, port_id = self.rx_port)
diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py
index c55ee13e..3b979744 100644
--- a/scripts/automation/regression/stateless_tests/stl_rx_test.py
+++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py
@@ -100,10 +100,10 @@ class STLRX_Test(CStlGeneral_Test):
# one simple stream on TX --> RX
def test_multiple_streams(self):
num_streams = 10
- total_pkts = self.total_pkts / num_streams
+ total_pkts = int(self.total_pkts / num_streams)
if total_pkts == 0:
total_pkts = 1
- percent = self.rate_percent / num_streams
+ percent = int(self.rate_percent / num_streams)
if percent == 0:
percent = 1