Skip to content

Commit

Permalink
Clear DNS cache in OSX tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gpotter2 committed Jun 15, 2024
1 parent 892b738 commit 7cf4d11
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .config/ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,10 @@ sys.exit()
EOF
echo "DEBUG: TEMPFILE=${TEMPFILE}"
./run_scapy -H -c "${TEMPFILE}" || exit 1

# OSX: clear DNS cache
if [ "$OSTYPE" = "darwin"* ]
then
# https://www.hongkiat.com/blog/clear-dns-cache-mac/
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
fi

0 comments on commit 7cf4d11

Please sign in to comment.