diff --git a/ci/integration-tests.sh b/ci/integration-tests.sh index d02861d9fb..5e3b6ee70e 100755 --- a/ci/integration-tests.sh +++ b/ci/integration-tests.sh @@ -19,7 +19,7 @@ for test in {,*/}tests/*.rs; do ( export RUST_LOG="$test"=trace,$RUST_LOG # shellcheck disable=SC2086 # Don't want to double quote $maybeFeatures - _ cargo test --all --verbose $maybeFeatures --test="$test" \ + _ cargo test --all ${V:+--verbose} $maybeFeatures --test="$test" \ -- --test-threads=1 --nocapture ) done diff --git a/ci/test-bench.sh b/ci/test-bench.sh index f06c039323..cf33b5bbc3 100755 --- a/ci/test-bench.sh +++ b/ci/test-bench.sh @@ -47,7 +47,7 @@ echo --- program/native/bpf_loader bench --features=bpf_c ( set -x cd programs/native/bpf_loader - cargo +nightly bench --verbose --features="bpf_c" \ + cargo +nightly bench ${V:+--verbose} --features="bpf_c" \ -- -Z unstable-options --format=json --nocapture | tee -a ../../../"$BENCH_FILE" ) diff --git a/ci/test-stable.sh b/ci/test-stable.sh index 8594cee5cd..7cbeca11c9 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -12,8 +12,8 @@ export RUST_BACKTRACE=1 export RUSTFLAGS="-D warnings" source scripts/ulimit-n.sh -_ cargo build --all --verbose --features="$FEATURES" -_ cargo test --all --verbose --features="$FEATURES" --lib -- --nocapture --test-threads=1 +_ cargo build --all ${V:+--verbose} --features="$FEATURES" +_ cargo test --all ${V:+--verbose} --features="$FEATURES" --lib -- --nocapture --test-threads=1 # Run native program tests (without $FEATURES) for program in programs/native/*; do