From 5c71f2a439502ecf3981c211997bd596db174f89 Mon Sep 17 00:00:00 2001 From: Stephen Akridge Date: Thu, 29 Nov 2018 10:54:10 -0800 Subject: [PATCH] Add ulimit check to stable test suite cargo test needs larger ulimit than default as well. --- ci/test-stable.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/test-stable.sh b/ci/test-stable.sh index f394fe882..92428a687 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -12,6 +12,11 @@ _() { "$@" } +if [[ $(ulimit -n) -lt 65000 ]]; then + echo 'Error: nofiles too small, run "ulimit -n 65000" to continue' + exit 1 +fi + _ cargo build --all --verbose _ cargo test --verbose --lib -- --nocapture