Skip to content

Commit

Permalink
ci: Cleanup iperf3 tests
Browse files Browse the repository at this point in the history
- Start iperf3 service instead of using systemd run since this is the
  standard way to start the server.
- Use iperf3-darwin since it provides additional info (RTT).

With this changes the macos-15 test is successful:
https://github.com/lima-vm/socket_vmnet/actions/runs/11980467424/job/33404783754

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Nov 22, 2024
1 parent c3f1b45 commit 5fed4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,13 @@ jobs:
- name: "Lima: vm1: set up iperf3"
run: |
limactl shell vm1 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y iperf3
limactl shell vm1 systemd-run --user --unit=iperf3 iperf3 -s
limactl shell vm1 sudo systemctl start iperf3.service
- name: "Lima: vm1: get the IP"
run: |
limactl shell vm1 ip -4 -json addr show dev lima0 | jq -r .[0].addr_info[0].local | tee /tmp/vm1_iP
- name: "Lima: vm1: iperf3 (host -> vm1)"
run: |
iperf3 -c "$(cat /tmp/vm1_ip)"
iperf3-darwin -c "$(cat /tmp/vm1_ip)"
- name: "Lima: vm1: debug"
if: failure()
run: tail -n500 ~/.lima/vm1/*.log
Expand Down

0 comments on commit 5fed4a3

Please sign in to comment.