Skip to content

Commit e423670

Browse files
committed
FreeBSD Test: destroy/create tap on each test
Attempt to stabilize CI tests
1 parent 17b3559 commit e423670

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/freebsd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,17 @@ jobs:
2828
set -ex
2929
cd "${GITHUB_WORKSPACE:-/root/work/github/workspace}"
3030
gmake build/test-evloop build/test-wolfssl build/test-ttl-expired unit
31+
cleanup_taps() {
32+
for ifc in $(ifconfig -l | tr ' ' '\n' | grep '^tap'); do
33+
ifconfig "${ifc}" destroy || true
34+
done
35+
}
36+
cleanup_taps
3137
./build/test/unit
38+
cleanup_taps
3239
./build/test-evloop
3340
sleep 2
41+
cleanup_taps
3442
./build/test-wolfssl
43+
cleanup_taps
3544
./build/test-ttl-expired

0 commit comments

Comments
 (0)