diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml index d03be14e1c..54ba261222 100644 --- a/.github/workflows/freebsd.yml +++ b/.github/workflows/freebsd.yml @@ -24,17 +24,17 @@ jobs: run: | chmod a+rw /dev/bpf* cmake -S . -B Dist - cmake --build Dist -j 2 + cmake --build Dist -j$(sysctl -n hw.ncpu) - ifconfig + # Get the first interface name that is not 'lo' + interface_name=$(ifconfig -l | tr ' ' '\n' | grep -v '^lo' | head -n 1) + ifconfig "$interface_name" promisc - ifconfig vtnet0 promisc - - python -m ensurepip - python -m pip install -r ci/run_tests/requirements.txt - python ci/run_tests/run_tests.py --interface vtnet0 + python3 -m ensurepip + python3 -m pip install -r ci/run_tests/requirements.txt + python3 ci/run_tests/run_tests.py --interface "$interface_name" cd Tests/ExamplesTest - python -m ensurepip - python -m pip install -r requirements.txt - python -m pytest --interface vtnet0 --root-path=../../Dist/examples_bin + python3 -m ensurepip + python3 -m pip install -r requirements.txt + python3 -m pytest --interface "$interface_name" --root-path=../../Dist/examples_bin