Add ulimit check to stable test suite

cargo test needs larger ulimit than default as well.
This commit is contained in:
Stephen Akridge 2018-11-29 10:54:10 -08:00 committed by sakridge
parent 8cc751d1cc
commit 5c71f2a439
1 changed files with 5 additions and 0 deletions

View File

@ -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