From: Petr Špaček Date: Fri, 14 Oct 2022 13:01:19 +0000 (+0200) Subject: Allow system tests to run under root user when inside CI X-Git-Tag: v9.19.7~51^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddf46056ca6afa6352c360be4a0d7e336f2b6fd1;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 41cd96910a3..212e9ee4f13 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -22,7 +22,7 @@ srcdir=@abs_srcdir@ # shellcheck source=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 exit 1 fi