mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
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 <robert.bradford@intel.com>
This commit is contained in:
parent
006da0405e
commit
250f825f58
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user