From d989d1fc0e0ae396e6919676a9cfb08cb82a406f Mon Sep 17 00:00:00 2001 From: Tim Wojtulewicz Date: Wed, 19 Mar 2025 10:56:45 -0700 Subject: [PATCH] CI: Run btests on macOS under sudo --- ci/test.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ci/test.sh b/ci/test.sh index adea2eb292..1a195c3cbd 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -7,6 +7,13 @@ result=0 BTEST=$(pwd)/auxil/btest/btest +# Due to issues with DNS lookups on macOS, one of the Cirrus support people recommended we +# run our tests as root. See https://github.com/cirruslabs/cirrus-ci-docs/issues/1302 for +# more details. +if [[ "${CIRRUS_OS}" == "darwin" ]]; then + BTEST="sudo ${BTEST}" +fi + if [[ -z "${CIRRUS_CI}" ]]; then # Set default values to use in place of env. variables set by Cirrus CI. ZEEK_CI_CPUS=1