mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Do not return a failure when no tests are run
It is a common use case to run a subset of tests locally to verify certain functionalities. The default behaviour for nextest is to error out if no tests are run. That causes the test scripts to return a non-zero value (failure). Pass `--no-tests=pass` to nextest to match what `cargo test` does if no tests are run. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -47,7 +47,7 @@ export RUSTFLAGS="$RUSTFLAGS"
|
||||
|
||||
# Only run with 1 thread to avoid tests interfering with one another because
|
||||
# Windows has a static IP configured
|
||||
time cargo nextest run $test_features "windows::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
|
||||
time cargo nextest run --no-tests=pass $test_features "windows::$test_filter" --target "$BUILD_TARGET" -- ${test_binary_args[*]}
|
||||
RES=$?
|
||||
|
||||
dmsetup remove_all -f
|
||||
|
||||
Reference in New Issue
Block a user