aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/config.sh3
-rwxr-xr-xtest/suite-capture.sh5
2 files changed, 6 insertions, 2 deletions
diff --git a/test/config.sh b/test/config.sh
index a0c0d0ea12..2fc5cfb839 100755
--- a/test/config.sh
+++ b/test/config.sh
@@ -80,6 +80,9 @@ if [ "$WS_SYSTEM" != "Windows" ] && which mkfifo &>/dev/null ; then
TEST_FIFO=1
fi
+# Tell Wireshark to quit after capuring packets.
+export WIRESHARK_QUIT_AFTER_CAPTURE="True"
+
# Display our environment
##printf "\n ------- Info =-----------------\n"
diff --git a/test/suite-capture.sh b/test/suite-capture.sh
index 9cd2a4c410..8fab50b270 100755
--- a/test/suite-capture.sh
+++ b/test/suite-capture.sh
@@ -386,8 +386,9 @@ capture_step_snapshot() {
}
wireshark_capture_suite() {
- # Q: quit after cap, k: start capture immediately
- DUT="$WIRESHARK -Q -k"
+ # k: start capture immediately
+ # WIRESHARK_QUIT_AFTER_CAPTURE needs to be set.
+ DUT="$WIRESHARK -k"
test_step_add "Capture 10 packets" capture_step_10packets
# piping to stdout doesn't work with Wireshark and capturing!
#test_step_add "Capture 10 packets using stdout: -w -" capture_step_10packets_stdout