tmi: disable --verbose by default. | export V=1| to request verbosity

This commit is contained in:
Michael Vines 2019-02-07 09:41:38 -08:00 committed by Grimes
parent 1f0b3f954a
commit eb3ba5ce2d
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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