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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue