mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 03:15:20 +00:00
tests: Improve OVS DPDK integration test
In order to simplify and speed up the OVS DPDK test, we switch from using 'iperf3' to 'netcat' to validate the connectivity is functional. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
2e8a552c24
commit
8fad60bada
@ -5272,7 +5272,7 @@ mod tests {
|
|||||||
let guest_ip = guest1.network.guest_ip.clone();
|
let guest_ip = guest1.network.guest_ip.clone();
|
||||||
thread::spawn(move || {
|
thread::spawn(move || {
|
||||||
ssh_command_ip(
|
ssh_command_ip(
|
||||||
"iperf3 -s -p 4444",
|
"nc -l 12345",
|
||||||
&guest_ip,
|
&guest_ip,
|
||||||
DEFAULT_SSH_RETRIES,
|
DEFAULT_SSH_RETRIES,
|
||||||
DEFAULT_SSH_TIMEOUT,
|
DEFAULT_SSH_TIMEOUT,
|
||||||
@ -5315,9 +5315,7 @@ mod tests {
|
|||||||
.unwrap());
|
.unwrap());
|
||||||
|
|
||||||
// Check the connection works properly between the two VMs
|
// Check the connection works properly between the two VMs
|
||||||
assert!(guest2
|
assert!(guest2.ssh_command_ok("nc -vz 172.100.0.1 12345").unwrap());
|
||||||
.ssh_command_ok("iperf3 -c 172.100.0.1 -t 10 -p 4444")
|
|
||||||
.unwrap());
|
|
||||||
});
|
});
|
||||||
|
|
||||||
let _ = child1.kill();
|
let _ = child1.kill();
|
||||||
|
Loading…
Reference in New Issue
Block a user