Commit d6262053 authored by Michał Kępień's avatar Michał Kępień

Merge branch 'michal/only-run-system-tests-as-root-in-developer-mode-v9_11' into 'v9_11'

[v9_11] Only run system tests as root in developer mode

See merge request !3902
parents 64e1429f 41e21178
Pipeline #47919 passed with stages
in 3 minutes and 11 seconds
......@@ -16,6 +16,11 @@
SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
. $SYSTEMTESTTOP/conf.sh
if [ "`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
export SYSTEMTESTTOP
stopservers=true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment