mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-21 19:02:30 +00:00
tests: Remove manual delete of the TAP interface in test_tap_from_fd
By using `net_util::open_tap` to create the TAP interface, the created interface will be deleted when the returned variable (`net_utils::Tap`) is dropped. Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
f7502057d9
commit
5fbeacabad
@ -5724,11 +5724,6 @@ mod tests {
|
||||
let _ = child.kill();
|
||||
let output = child.wait_with_output().unwrap();
|
||||
|
||||
std::process::Command::new("bash")
|
||||
.args(&["-c", "sudo ip tuntap del mode tap name chtap0"])
|
||||
.status()
|
||||
.expect("Expected upping interface to work");
|
||||
|
||||
handle_child_output(r, &output);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user