internet_checksum.run: log values on error

Issue #4636
This commit is contained in:
Christian Helmuth 2024-05-28 14:19:08 +02:00
parent 20a7918b41
commit 95a7e7a840

View File

@ -85,7 +85,7 @@ set tmp_file "$lx_fs_dir/tmp"
exec $tshark -o ip.check_checksum:TRUE -o tcp.check_checksum:TRUE -o udp.check_checksum:TRUE -V -r $output_file | grep -e "Checksum Status:" -e "Header checksum status:" > $tmp_file exec $tshark -o ip.check_checksum:TRUE -o tcp.check_checksum:TRUE -o udp.check_checksum:TRUE -V -r $output_file | grep -e "Checksum Status:" -e "Header checksum status:" > $tmp_file
set num_output_checksums [exec wc -l < $tmp_file] set num_output_checksums [exec wc -l < $tmp_file]
if {$num_checked_checksums != $num_output_checksums} { if {$num_checked_checksums != $num_output_checksums} {
puts "\nError: number of checksums in $output_file differs from number of checked checksums\n" puts "\nError: number of checksums in $output_file ($num_output_checksums) differs from number of checked checksums ($num_checked_checksums)\n"
exit -1 exit -1
} }
grep_output {\[init\] child "test-internet_checksum" exited} grep_output {\[init\] child "test-internet_checksum" exited}