tests: Support filtering integration tests

e.g.

scripts/dev_cli.sh tests --integration -- --test-filter test_watchdog

This used to be supported by passing "$@" but was broken when multiple
hypervisor support was added.

Fixes: #2182

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2021-01-25 15:55:34 +00:00
parent fd9972ecc5
commit c2acea5156
5 changed files with 13 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export RUST_BACKTRACE=1
# Only run with 1 thread to avoid tests interfering with one another because
# Windows has a static IP configured
time cargo test $features_test "tests::windows::" -- --test-threads=1
time cargo test $features_test "tests::windows::$test_filter" -- --test-threads=1
RES=$?
dmsetup remove_all -f