Skip to content

Commit 7cf4d11

Browse files
committed
Clear DNS cache in OSX tests
1 parent 892b738 commit 7cf4d11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.config/ci/test.sh

+7
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,10 @@ sys.exit()
133133
EOF
134134
echo "DEBUG: TEMPFILE=${TEMPFILE}"
135135
./run_scapy -H -c "${TEMPFILE}" || exit 1
136+
137+
# OSX: clear DNS cache
138+
if [ "$OSTYPE" = "darwin"* ]
139+
then
140+
# https://www.hongkiat.com/blog/clear-dns-cache-mac/
141+
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
142+
fi

0 commit comments

Comments
 (0)