From 7c47ca7894def36253b142143d2b2aae41f20ad8 Mon Sep 17 00:00:00 2001 From: tigercosmos Date: Sun, 23 Jun 2024 18:25:39 +0900 Subject: [PATCH] update --- .github/workflows/freebsd.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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