]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
test-builds.sh: in case of error dump full log (#622)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 19 May 2020 01:06:41 +0000 (01:06 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 19 May 2020 01:06:45 +0000 (01:06 +0000)
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

test-builds.sh

index 94eeca6b01a0fb7c1a5bda6cff05897cc1c5c150..c167f1a4c6e31932997c4ecd9e94c4102cb47017 100755 (executable)
@@ -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