From: Francesco Chemolli Date: Tue, 19 May 2020 01:06:41 +0000 (+0000) Subject: test-builds.sh: in case of error dump full log (#622) X-Git-Tag: 4.15-20210522-snapshot~116 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96356d4e45639dec302ebf95038d9b66f8d63baf;p=thirdparty%2Fsquid.git test-builds.sh: in case of error dump full log (#622) Change behaviour of the test-builds script to dump the full output of the current layer's log in case of error. This will help better diagnose errors as the root cause of an error may have exited the 20-lines buffer we currently use --- diff --git a/test-builds.sh b/test-builds.sh index 94eeca6b01..c167f1a4c6 100755 --- a/test-builds.sh +++ b/test-builds.sh @@ -139,8 +139,10 @@ buildtest() { fi else if test "${verbose}" != "yes" ; then - echo "Build Failed. Last log lines are:" - tail -20 ${log} + echo "Build Failed." + echo "Log start: ${log}" + cat ${log} + echo "Log end: ${log}" else echo "Build FAILED." fi