From 347309141f54fa29b01511817a7d82fc73ffde6c Mon Sep 17 00:00:00 2001 From: Jaeden Amero Date: Wed, 3 Jul 2019 13:51:04 +0100 Subject: [PATCH] tests: Limit each log to 10 GiB Limit log output in compat.sh and ssl-opt.sh, in case of failures with these scripts where they may output seemingly unlimited length error logs. Note that ulimit -f uses units of 512 bytes, so we use 10 * 1024 * 1024 * 2 to get 10 GiB. --- tests/compat.sh | 4 ++++ tests/ssl-opt.sh | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tests/compat.sh b/tests/compat.sh index 778eddba5..b4d2c524a 100755 --- a/tests/compat.sh +++ b/tests/compat.sh @@ -15,6 +15,10 @@ set -u +# Limit the size of each log to 10 GiB, in case of failures with this script +# where it may output seemingly unlimited length error logs. +ulimit -f 20971520 + # initialise counters TESTS=0 FAILED=0 diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index bf9198311..e0f7f8189 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -21,6 +21,10 @@ set -u +# Limit the size of each log to 10 GiB, in case of failures with this script +# where it may output seemingly unlimited length error logs. +ulimit -f 20971520 + # default values, can be overridden by the environment : ${P_SRV:=../programs/ssl/ssl_server2} : ${P_CLI:=../programs/ssl/ssl_client2}