diff options
author | 2016-11-15 20:16:22 +0200 | |
---|---|---|
committer | 2016-11-15 20:16:39 +0200 | |
commit | 3ff4220850aeb6b6258c7909d8f36f11ade4070d (patch) | |
tree | 19cfa87d49f9c547af484a79d1f9c071c52522a0 /scripts/automation/regression | |
parent | a21e1f0b55e724f099e8732471788f6e1de1e3ef (diff) |
fix python3 regression issue
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts/automation/regression')
-rw-r--r-- | scripts/automation/regression/stateless_tests/stl_rx_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py index 14fcbd0f..d28fca54 100644 --- a/scripts/automation/regression/stateless_tests/stl_rx_test.py +++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py @@ -410,8 +410,8 @@ class STLRX_Test(CStlGeneral_Test): s_port=random.sample(all_ports, random.randint(1, len(all_ports)) ) s_port=sorted(s_port) - print s_port - if self.speed == 40 || self.speed == 100: + + if ((self.speed == 40) or (self.speed == 100)): # the NIC does not support all full rate in case both port works let's filter odd ports s_port=list(filter(lambda x: x % 2==0, s_port)) if len(s_port)==0: |