[dts] [PATCH v2 07/28] tests: ipv4_reassembly - added splitting result in tcpdump_command
Angela Czubak
aczubak at caviumnetworks.com
Mon Apr 10 19:09:01 CEST 2017
Result from tcpdump_command may contain something more than only number,
added splitting and taking first element of this operation so that
casting to int proceeds
Signed-off-by: Angela Czubak <aczubak at caviumnetworks.com>
---
tests/TestSuite_ipv4_reassembly.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index 3f0e725..8f28823 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -257,7 +257,7 @@ class TestIpReassembly(TestCase):
"""
result = self.tester.send_expect(command, '#')
- return int(result.strip())
+ return int(result.strip().split()[0])
def number_of_received_packets(self, tcp_port):
"""
--
2.7.4
More information about the dts
mailing list