From: Marc Abramowitz Date: Fri, 5 Oct 2012 00:04:54 +0000 (-0700) Subject: Do more verbose logging to the console of output when tests fail so that X-Git-Tag: tcpdump-4.4.0~23^2~1 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/f8a96c931749aa3d9fa1de6a707cdf006ff2bfd7?ds=inline Do more verbose logging to the console of output when tests fail so that I can figure out why some tests are failing in Travis CI. --- diff --git a/tests/TESTrun.sh b/tests/TESTrun.sh index dfcc3307..d1baaa7b 100755 --- a/tests/TESTrun.sh +++ b/tests/TESTrun.sh @@ -4,6 +4,7 @@ mkdir -p NEW mkdir -p DIFF passed=0 failed=0 +cat /dev/null > failure-outputs.txt # first run any specific tests. for i in *.sh @@ -42,6 +43,10 @@ do echo $name: failed. failed=`expr $failed + 1` echo $failed >.failed + echo "Failed test: $name" >> failure-outputs.txt + echo >> failure-outputs.txt + cat DIFF/$output.diff >> failure-outputs.txt + echo >> failure-outputs.txt fi done @@ -56,6 +61,9 @@ printf "%4u tests failed\n" $failed printf "%4u tests passed\n" $passed echo echo +cat failure-outputs.txt +echo +echo exit $failed