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

Only run system tests as root in developer mode

Running system tests with root privileges is potentially dangerous.
Only allow it when explicitly requested (by building with

(cherry picked from commit 3ef106f6)
parent 64e1429f
Pipeline #47917 canceled with stages
in 9 minutes and 48 seconds
......@@ -16,6 +16,11 @@
SYSTEMTESTTOP="$(cd -P -- "$(dirname -- "$0")" && pwd -P)"
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
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