Use 2 btest retries for CI

This commit is contained in:
Jon Siwek 2020-02-03 19:55:08 -08:00
parent 391164c9bc
commit 63e68665d3
4 changed files with 7 additions and 3 deletions

View file

@ -13,6 +13,7 @@ if [[ -z "${CIRRUS_CI}" ]]; then
[[ $(which nproc) ]] && ZEEK_CI_CPUS=$(nproc)
[[ -n "${1}" ]] && ZEEK_CI_CPUS=${1}
ZEEK_CI_BTEST_JOBS=${ZEEK_CI_CPUS}
ZEEK_CI_BTEST_RETRIES=2
fi
function pushd
@ -56,7 +57,7 @@ function run_btests
banner "Running baseline tests: zeek"
pushd testing/btest
${BTEST} -d -b -x btest-results.xml -j ${ZEEK_CI_BTEST_JOBS} || result=1
${BTEST} -z ${ZEEK_CI_BTEST_RETRIES} -d -b -x btest-results.xml -j ${ZEEK_CI_BTEST_JOBS} || result=1
make coverage
prep_artifacts
popd