tests: Dynamically assign IPs for Windows integration tests

Relying on dnsmasq running on the host, the Windows guest are now
getting allocated with the expected IP addresses. This allows for
multiple VMs, therefore multiple tests to run in parallel.

The end goal is to reduce the time spent running Windows integration
tests.

Fixes #1891

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-05-06 15:18:05 +02:00
parent aa76c9db2e
commit 0a00df2e7e
3 changed files with 77 additions and 17 deletions

View file

@ -44,7 +44,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_filter" -- --test-threads=1
time cargo test $features_test "tests::windows::$test_filter"
RES=$?
dmsetup remove_all -f