tests: add Windows guest snapshot test

We also need to restrict the number of test threads to 1 to avoid tests
interfere with each other.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2020-10-21 22:31:01 +00:00
committed by Sebastien Boeuf
parent 89b3d7b49b
commit 2902a96ae6
2 changed files with 101 additions and 1 deletions

View File

@@ -16,7 +16,9 @@ strip target/$BUILD_TARGET/release/cloud-hypervisor
export RUST_BACKTRACE=1
time cargo test --features "integration_tests" "tests::windows::$@"
# Only run with 1 thread to avoid tests interfering with one another because
# Windows has a static IP configured
time cargo test --features "integration_tests" "tests::windows::$@" -- --test-threads=1
RES=$?
exit $RES