diff options
Diffstat (limited to 'scripts/automation/regression/stateless_tests/stl_rx_test.py')
-rw-r--r-- | scripts/automation/regression/stateless_tests/stl_rx_test.py | 10 |
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 bb682b6c..3b979744 100644 --- a/scripts/automation/regression/stateless_tests/stl_rx_test.py +++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py @@ -1,5 +1,5 @@ #!/router/bin/python -from stl_general_test import CStlGeneral_Test, CTRexScenario +from .stl_general_test import CStlGeneral_Test, CTRexScenario from trex_stl_lib.api import * import os, sys @@ -86,7 +86,7 @@ class STLRX_Test(CStlGeneral_Test): # add both streams to ports self.c.add_streams([s1], ports = [self.tx_port]) - print "\ninjecting {0} packets on port {1}\n".format(total_pkts, self.tx_port) + print("\ninjecting {0} packets on port {1}\n".format(total_pkts, self.tx_port)) exp = {'pg_id': 5, 'total_pkts': total_pkts, 'pkt_len': self.pkt.get_pkt_len()} @@ -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 @@ -148,7 +148,7 @@ class STLRX_Test(CStlGeneral_Test): exp = {'pg_id': 5, 'total_pkts': total_pkts, 'pkt_len': self.pkt.get_pkt_len()} for i in range(0, 10): - print "starting iteration {0}".format(i) + print("starting iteration {0}".format(i)) self.__rx_iteration( [exp] ) |