From d9df0433c5e83dc7678ae137f5afefc6bbf13c39 Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Wed, 5 Jul 2023 14:43:56 +0000 Subject: test-checkout.sh: Increase length of tail-of-log When manifests differ, we dump the tail of the log of the comparison build, but since we execute the build under 'set -x', this includes traces that make interesting/important information disappear from the tail of the tail. This patch simply dumps the last 20 lines, which looks sufficient. Change-Id: I4c336d9c5fabd4a49869fd6638ea000cc3b130b8 --- test-checkout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-checkout.sh b/test-checkout.sh index 552caf5..7f27fcf 100755 --- a/test-checkout.sh +++ b/test-checkout.sh @@ -349,7 +349,7 @@ do_test() else NUM_FAIL=$((NUM_FAIL+1)) echo "FAIL: $* (See workspace-$LOGNAME/test_$LOGNAME.log, tail of log:)" - tail workspace-$LOGNAME/test_$LOGNAME.log + tail -n20 workspace-$LOGNAME/test_$LOGNAME.log fi if [ $RESULT -eq 0 -a x"$GIT_REF_OPT_SET" = x"false" ]; then GIT_REF_OPT=--with-git-reference-dir=$TOP/workspace-$LOGNAME/snapshots -- cgit v1.2.3