mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +00:00
Allow system tests to run under root user when inside CI
https://docs.gitlab.com/ee/ci/variables/predefined_variables.html says variable CI_SERVER="yes" is available in all versions of Gitlab.
This commit is contained in:
@@ -22,7 +22,7 @@ srcdir=@abs_srcdir@
|
|||||||
# shellcheck source=conf.sh
|
# shellcheck source=conf.sh
|
||||||
. ${builddir}/conf.sh
|
. ${builddir}/conf.sh
|
||||||
|
|
||||||
if [ "$(id -u)" -eq "0" ] && [ "@DEVELOPER_MODE@" != "yes" ]; then
|
if [ "$CI_SERVER" != "yes" ] && [ "$(id -u)" -eq "0" ] && [ "@DEVELOPER_MODE@" != "yes" ]; then
|
||||||
echofail "Refusing to run test as root. Build with --enable-developer to override." >&2
|
echofail "Refusing to run test as root. Build with --enable-developer to override." >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user