Merge branch 'pspacek/ci-no-developer-mode-v9_16' into 'v9_16'

Add CI job with --disable-developer [v9_16]

See merge request isc-projects/bind9!6936
This commit is contained in:
Petr Špaček
2022-10-18 13:48:35 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -644,7 +644,7 @@ gcc:oraclelinux9:amd64:
variables:
CC: gcc
CFLAGS: "${CFLAGS_COMMON}"
EXTRA_CONFIGURE: "--with-libidn2"
EXTRA_CONFIGURE: "--with-libidn2 --disable-developer"
<<: *oraclelinux_9_amd64_image
<<: *build_job

View File

@@ -18,7 +18,7 @@
SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
. $SYSTEMTESTTOP/conf.sh
if [ "$(id -u)" -eq "0" ] && ! ${NAMED} -V | grep -q -F -- "enable-developer"; then
if [ "$CI_SERVER" != "yes" ] && [ "$(id -u)" -eq "0" ] && ! ${NAMED} -V | grep -q -F -- "enable-developer"; then
echofail "Refusing to run test as root. Build with --enable-developer to override." >&2
exit 1
fi