Avoid empty --features= arg to avoid unnecessary cargo building
This commit is contained in:
parent
fea480526b
commit
98e893c69b
|
@ -3,7 +3,11 @@
|
||||||
# Runs all integration tests in the tree serially
|
# Runs all integration tests in the tree serially
|
||||||
#
|
#
|
||||||
set -e
|
set -e
|
||||||
FEATURES="$1"
|
maybeFeatures=
|
||||||
|
if [[ -n $1 ]]; then
|
||||||
|
maybeFeatures="--features=$1"
|
||||||
|
fi
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
source ci/_
|
source ci/_
|
||||||
export RUST_BACKTRACE=1
|
export RUST_BACKTRACE=1
|
||||||
|
@ -14,7 +18,8 @@ for test in {,*/}tests/*.rs; do
|
||||||
test=${test%.rs} # basename x .rs
|
test=${test%.rs} # basename x .rs
|
||||||
(
|
(
|
||||||
export RUST_LOG="$test"=trace,$RUST_LOG
|
export RUST_LOG="$test"=trace,$RUST_LOG
|
||||||
_ cargo test --all --verbose --features="$FEATURES" --test="$test" \
|
# shellcheck disable=SC2086 # Don't want to double quote $maybeFeatures
|
||||||
|
_ cargo test --all --verbose $maybeFeatures --test="$test" \
|
||||||
-- --test-threads=1 --nocapture
|
-- --test-threads=1 --nocapture
|
||||||
)
|
)
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue