From 8fad60badab4d85b2d074e184fbe78dd1b781f91 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Thu, 3 Jun 2021 23:59:18 +0200 Subject: [PATCH] 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 --- tests/integration.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/integration.rs b/tests/integration.rs index 57e470849..454d57c6b 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -5272,7 +5272,7 @@ mod tests { let guest_ip = guest1.network.guest_ip.clone(); thread::spawn(move || { ssh_command_ip( - "iperf3 -s -p 4444", + "nc -l 12345", &guest_ip, DEFAULT_SSH_RETRIES, DEFAULT_SSH_TIMEOUT, @@ -5315,9 +5315,7 @@ mod tests { .unwrap()); // Check the connection works properly between the two VMs - assert!(guest2 - .ssh_command_ok("iperf3 -c 172.100.0.1 -t 10 -p 4444") - .unwrap()); + assert!(guest2.ssh_command_ok("nc -vz 172.100.0.1 12345").unwrap()); }); let _ = child1.kill();