From 430f72f96cf3fa5b3bcb5c242628feb775ab392d Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Wed, 5 Jan 2022 18:04:46 -0800 Subject: [PATCH] scripts: Use cargo build-in options to run unit tests only In this way, we don't need to rely on feature gates to exclude integration tests from running. Signed-off-by: Bo Chen --- scripts/run_unit_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_unit_tests.sh b/scripts/run_unit_tests.sh index 79a9ef899..972006703 100755 --- a/scripts/run_unit_tests.sh +++ b/scripts/run_unit_tests.sh @@ -13,4 +13,4 @@ if [[ $(uname -m) = "aarch64" || $hypervisor = "mshv" ]]; then cargo_args+=("--features $hypervisor") fi export RUST_BACKTRACE=1 -cargo test --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1; +cargo test --lib --bins --target $BUILD_TARGET --workspace ${cargo_args[@]} || exit 1;