Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix typos in DUTsetup.py
[csit.git]
/
resources
/
libraries
/
python
/
TLDK
/
UdpTest.py
diff --git
a/resources/libraries/python/TLDK/UdpTest.py
b/resources/libraries/python/TLDK/UdpTest.py
index
adc8aa0
..
b3f1b22
100644
(file)
--- a/
resources/libraries/python/TLDK/UdpTest.py
+++ b/
resources/libraries/python/TLDK/UdpTest.py
@@
-73,7
+73,6
@@
class UdpTest(object):
:type file_prefix: str
:type dest_ip: str
:type is_ipv4: bool
:type file_prefix: str
:type dest_ip: str
:type is_ipv4: bool
- :returns: none.
:raises RuntimeError: If failed to execute udpfwd test on the dut node.
"""
pci_address = Topology.get_interface_pci_addr(dut_node, dut_if)
:raises RuntimeError: If failed to execute udpfwd test on the dut node.
"""
pci_address = Topology.get_interface_pci_addr(dut_node, dut_if)
@@
-114,8
+113,8
@@
class UdpTest(object):
"""
ssh = SSH()
ssh.connect(dut_node)
"""
ssh = SSH()
ssh.connect(dut_node)
- cmd = 'cd {0};
tcpdump -nnnn -vvv -r ./{2}/{1}_tx.pcap |
' \
-
'
grep \'udp sum ok\' | wc -l' \
+ cmd = 'cd {0};
sudo /usr/sbin/tcpdump -nnnn -vvv -r ./{2}/{1}_tx.pcap
' \
+
' |
grep \'udp sum ok\' | wc -l' \
.format(con.REMOTE_FW_DIR, file_prefix, con.TLDK_TESTCONFIG)
(ret_code, stdout, _) = ssh.exec_command(cmd, timeout=100)
.format(con.REMOTE_FW_DIR, file_prefix, con.TLDK_TESTCONFIG)
(ret_code, stdout, _) = ssh.exec_command(cmd, timeout=100)