From 4aa6695a135dfc0f411e790219deabf7d6f359d4 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sat, 2 Feb 2019 10:42:08 -0800 Subject: [PATCH] source ulimit-n.sh so it applies to the current shell --- ci/integration-tests.sh | 2 +- ci/test-coverage.sh | 2 +- ci/test-large-network.sh | 2 +- ci/test-stable.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/integration-tests.sh b/ci/integration-tests.sh index 88366cee33..605d7a6d74 100755 --- a/ci/integration-tests.sh +++ b/ci/integration-tests.sh @@ -7,7 +7,7 @@ FEATURES="$1" cd "$(dirname "$0")/.." source ci/_ export RUST_BACKTRACE=1 -scripts/ulimit-n.sh +source scripts/ulimit-n.sh for test in {,*/}tests/*.rs; do test=${test##*/} # basename x diff --git a/ci/test-coverage.sh b/ci/test-coverage.sh index e8925375ff..455ce74bef 100755 --- a/ci/test-coverage.sh +++ b/ci/test-coverage.sh @@ -22,7 +22,7 @@ ci/affects-files.sh \ source ci/upload-ci-artifact.sh ci/version-check-with-upgrade.sh nightly -scripts/ulimit-n.sh +source scripts/ulimit-n.sh scripts/coverage.sh diff --git a/ci/test-large-network.sh b/ci/test-large-network.sh index 5c966d0b9c..70408a0ef4 100755 --- a/ci/test-large-network.sh +++ b/ci/test-large-network.sh @@ -15,7 +15,7 @@ export LD_LIBRARY_PATH=$PWD/target/perf-libs:$LD_LIBRARY_PATH export RUST_LOG=multinode=info -scripts/ulimit-n.sh +source scripts/ulimit-n.sh if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.rmem_default=1610612736" to continue' diff --git a/ci/test-stable.sh b/ci/test-stable.sh index c0cc5fec6d..8594cee5cd 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -11,7 +11,7 @@ ci/version-check-with-upgrade.sh stable export RUST_BACKTRACE=1 export RUSTFLAGS="-D warnings" -_ scripts/ulimit-n.sh +source scripts/ulimit-n.sh _ cargo build --all --verbose --features="$FEATURES" _ cargo test --all --verbose --features="$FEATURES" --lib -- --nocapture --test-threads=1