From 250f825f586b55a6d16f1924962875031d41b01e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 7 May 2020 10:01:53 +0100 Subject: [PATCH] tests: Check that requesting tap name for virtio-net succeeds When requesting a specific tap name with virtio-net check that that tap device is created. Signed-off-by: Rob Bradford --- tests/integration.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index 2df5c4e83..361677dfe 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -2202,6 +2202,13 @@ mod tests { thread::sleep(std::time::Duration::new(20, 0)); + let tap_count = std::process::Command::new("bash") + .arg("-c") + .arg("ip link | grep -c mytap1") + .output() + .expect("Expected checking of tap count to succeed"); + aver_eq!(tb, String::from_utf8_lossy(&tap_count.stdout).trim(), "1"); + // 3 network interfaces + default localhost ==> 4 interfaces aver_eq!( tb,