-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-test: packetdrill: run_all: add --capture option
This new option is useful to capture packet traces per test for debug purposes. With the new parameter, we can specify to capture packets with TCPDump and write the .pcap files in the given directory without modifying in_netns.sh or re-launching the tests manually outside the netns. e.g. to write .pcap files in the home directory: $ run_all.py -c ~ Files will be generated using the name of the test and its variant. Note that this adds some delay: one second before starting not to miss the first packets and one second at the end to make sure the last packets will be captured by TCPDump. Signed-off-by: Matthieu Baerts <[email protected]>
- Loading branch information
1 parent
48d5352
commit 90e6d74
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters