From 42f7eb821648b0076163faf968a83ab5dd2ce672 Mon Sep 17 00:00:00 2001 From: Haru Date: Sun, 1 Jul 2018 20:53:23 +0200 Subject: Limit the output length on Travis This is an attempt to avoid the `./tools/ci/travis.sh: line 55: /bin/cat: Argument list too long` error Signed-off-by: Haru --- tools/ci/travis.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/ci/travis.sh b/tools/ci/travis.sh index f6c799934..fa7d5be93 100755 --- a/tools/ci/travis.sh +++ b/tools/ci/travis.sh @@ -49,10 +49,10 @@ function run_server { echo "Running: $1 --run-once $2" $1 --run-once $2 2>runlog.txt export errcode=$? - export teststr=$(cat runlog.txt) + export teststr=$(head -c 10000 runlog.txt) if [[ -n "${teststr}" ]]; then echo "Errors found in running server $1." - cat runlog.txt + head -c 10000 runlog.txt aborterror "Errors found in running server $1." else echo "No errors found for server $1." @@ -67,10 +67,10 @@ function run_test { echo "Running: test_$1" ./test_$1 2>runlog.txt export errcode=$? - export teststr=$(cat runlog.txt) + export teststr=$(head -c 10000 runlog.txt) if [[ -n "${teststr}" ]]; then echo "Errors found in running test $1." - cat runlog.txt + head -c 10000 runlog.txt aborterror "Errors found in running test $1." else echo "No errors found for test $1." -- cgit v1.2.3-70-g09d2