From 04d111ee153c80c214331cae4fc25c35e29ce991 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Fri, 14 Apr 2023 18:40:45 -0700 Subject: [PATCH] tests: Extend '_test_macvtap()' with reboot In this way, we can cover the scenario where a VM with hotplugged net device using FDs can work properly with reboot. Signed-off-by: Bo Chen --- tests/integration.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 4dfc81eca..88f9167b3 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -6238,6 +6238,18 @@ mod common_parallel { .unwrap_or_default(), 2 ); + + guest.reboot_linux(0, None); + + assert_eq!( + guest + .ssh_command("ip -o link | wc -l") + .unwrap() + .trim() + .parse::() + .unwrap_or_default(), + 2 + ); }); let _ = child.kill();