diff options
author | 2017-02-07 15:55:04 +0200 | |
---|---|---|
committer | 2017-02-07 15:55:04 +0200 | |
commit | 03a49691cf74dfdb4f1f39ed15b5ca1d40384c56 (patch) | |
tree | d23702960c2b35222289163e5ada037385fc8dcb /scripts/automation/regression/stateless_tests | |
parent | 5bd1b14228f73af4c50412ebbc02cf5d6515c0a3 (diff) |
Regression: fixes for filter in Python3
Change-Id: I91912c31c57928eb4cc566ee483cdd31f93c4afc
Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'scripts/automation/regression/stateless_tests')
-rwxr-xr-x | scripts/automation/regression/stateless_tests/stl_ipv6_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/regression/stateless_tests/stl_ipv6_test.py b/scripts/automation/regression/stateless_tests/stl_ipv6_test.py index 1fe248a3..3f740770 100755 --- a/scripts/automation/regression/stateless_tests/stl_ipv6_test.py +++ b/scripts/automation/regression/stateless_tests/stl_ipv6_test.py @@ -19,7 +19,7 @@ class STLIPv6_Test(CStlGeneral_Test): ping_count = 5 expected_replies = 4 # allow one loss results = self.stl_trex.ping_ip(src_port = 0, dst_ip = 'ff02::1', count = ping_count) - good_replies = len(filter(lambda result: result['status'] == 'success', results)) + good_replies = len(list(filter(lambda result: result['status'] == 'success', results))) if self.is_loopback: # negative test, loopback if good_replies > 0: @@ -35,7 +35,7 @@ class STLIPv6_Test(CStlGeneral_Test): # negative test, unknown IP results = self.stl_trex.ping_ip(src_port = 0, dst_ip = '1234::1234', count = ping_count) - good_replies = len(filter(lambda result: result['status'] == 'success', results)) + good_replies = len(list(filter(lambda result: result['status'] == 'success', results))) if good_replies > 0: self.fail('We have answers from unknown IPv6, bug!\nOutput: %s' % results) else: |