From 96356d4e45639dec302ebf95038d9b66f8d63baf Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Tue, 19 May 2020 01:06:41 +0000 Subject: [PATCH] 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 --- test-builds.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.47.3