diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2021-06-08 15:23:33 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2021-06-08 15:23:33 +0200 |
commit | a41ddafa88de870aadad4acdf0193ac3a326c403 (patch) | |
tree | b4400a61a9738620510aa57706e1349c20253727 /test/run_tests.sh | |
parent | 30502ff0a0d12e8f1a39c3366d14a3f443051e65 (diff) |
Git tag/commit version printing for nDPId/nDPIsrvd. Reduces confusion.
* disabled subshell spawn for run_tests.sh, common pitfall while using counters
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'test/run_tests.sh')
-rwxr-xr-x | test/run_tests.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh index 193fd96c4..61d8b8547 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -82,7 +82,8 @@ if [ $? -ne 1 ]; then exit 7 fi -find . -printf '%f\n' -iname '*.pcap' -o -iname '*.pcapng' -o -iname '*.cap' | while read pcap_file; do +printf 'Using PCAP files from: %s (%s total)\n\n' "$(pwd)" "$(ls -l *.pcap *.pcapng *.cap | wc -l)" +for pcap_file in $(ls *.pcap *.pcapng *.cap); do if file "${pcap_file}" | grep -qoE ':\s(pcap|pcap-ng) capture file'; then true # pass else |