mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
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 <chen.bo@intel.com>
This commit is contained in:
parent
901f65388a
commit
430f72f96c
@ -13,4 +13,4 @@ if [[ $(uname -m) = "aarch64" || $hypervisor = "mshv" ]]; then
|
|||||||
cargo_args+=("--features $hypervisor")
|
cargo_args+=("--features $hypervisor")
|
||||||
fi
|
fi
|
||||||
export RUST_BACKTRACE=1
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user