aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite-capture.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite-capture.sh')
-rwxr-xr-xtest/suite-capture.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/suite-capture.sh b/test/suite-capture.sh
index a60b3beeae..bac81bfb95 100755
--- a/test/suite-capture.sh
+++ b/test/suite-capture.sh
@@ -43,6 +43,17 @@ capture_test_output_print() {
done
}
+capture_test_output_capinfos() {
+ wait
+ for f in "$@"; do
+ if [[ -f "$f" ]]; then
+ $CAPINFOS "$f"
+ else
+ printf "$f not found.\n"
+ fi
+ done
+}
+
traffic_gen_ping() {
# Generate some traffic for quiet networks.
# The following will run in the background and return immediately
@@ -225,6 +236,7 @@ capture_step_stdin() {
set +xv
if [ ! $RETURNVALUE -eq $EXIT_OK ]; then
capture_test_output_print ./testout.txt ./testerr.txt ./dumpcap_debug_log.tmp
+ capture_test_output_capinfos ./testout.pcap
test_step_failed "Exit status of $DUT: $RETURNVALUE"
return
fi