Skip to content

Commit

Permalink
Merge branch 'main' into ssbs_on_ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
zulinx86 authored Nov 7, 2024
2 parents 6659b64 + 2e994b5 commit 461ee31
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/integration_tests/functional/test_net.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
from framework import utils

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


def test_high_ingress_traffic(uvm_plain_any):
Expand All @@ -33,15 +37,15 @@ def test_high_ingress_traffic(uvm_plain_any):
test_microvm.start()

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

# Start iperf3 client on the host. Send 1Gbps UDP traffic.
# If the net device breaks, iperf will freeze. We have to use a timeout.
utils.run_cmd(
"timeout 30 {} {} -c {} -u -V -b 1000000000 -t 30".format(
utils.check_output(
"timeout 31 {} {} -c {} -u -V -b 1000000000 -t 30".format(
test_microvm.netns.cmd_prefix(),
IPERF_BINARY,
IPERF_BINARY_HOST,
guest_ip,
),
)
Expand Down

0 comments on commit 461ee31

Please sign in to comment.