diff options
author | Haru <haru@dotalux.com> | 2018-07-01 20:53:23 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2018-07-01 21:09:26 +0200 |
commit | 42f7eb821648b0076163faf968a83ab5dd2ce672 (patch) | |
tree | d2892f1fe37846f56da93c89aa0b29e9442205ca /tools | |
parent | a6292d5eaf34e39ce8dcb7c8a260cc1772eb536c (diff) | |
download | hercules-42f7eb821648b0076163faf968a83ab5dd2ce672.tar.gz hercules-42f7eb821648b0076163faf968a83ab5dd2ce672.tar.bz2 hercules-42f7eb821648b0076163faf968a83ab5dd2ce672.tar.xz hercules-42f7eb821648b0076163faf968a83ab5dd2ce672.zip |
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 <haru@dotalux.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ci/travis.sh | 8 |
1 files 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." |