mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 03:12:27 +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")
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user