mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 13:05:45 +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 _ = child.kill();
|
||||||
let output = child.wait_with_output().unwrap();
|
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);
|
handle_child_output(r, &output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user