Skip to content

Commit 461ee31

Browse files
authored
Merge branch 'main' into ssbs_on_ubuntu
2 parents 6659b64 + 2e994b5 commit 461ee31

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

tests/integration_tests/functional/test_net.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
from framework import utils
1111

1212
# The iperf version to run this tests with
13-
IPERF_BINARY = "iperf3"
13+
IPERF_BINARY_GUEST = "iperf3"
14+
# We are using iperf3-vsock instead of a regular iperf3,
15+
# because iperf3 3.16+ crashes on aarch64 sometimes
16+
# when running this test.
17+
IPERF_BINARY_HOST = "iperf3-vsock"
1418

1519

1620
def test_high_ingress_traffic(uvm_plain_any):
@@ -33,15 +37,15 @@ def test_high_ingress_traffic(uvm_plain_any):
3337
test_microvm.start()
3438

3539
# Start iperf3 server on the guest.
36-
test_microvm.ssh.run("{} -sD\n".format(IPERF_BINARY))
40+
test_microvm.ssh.check_output("{} -sD\n".format(IPERF_BINARY_GUEST))
3741
time.sleep(1)
3842

3943
# Start iperf3 client on the host. Send 1Gbps UDP traffic.
4044
# If the net device breaks, iperf will freeze. We have to use a timeout.
41-
utils.run_cmd(
42-
"timeout 30 {} {} -c {} -u -V -b 1000000000 -t 30".format(
45+
utils.check_output(
46+
"timeout 31 {} {} -c {} -u -V -b 1000000000 -t 30".format(
4347
test_microvm.netns.cmd_prefix(),
44-
IPERF_BINARY,
48+
IPERF_BINARY_HOST,
4549
guest_ip,
4650
),
4751
)

0 commit comments

Comments
 (0)