From: Lennart Poettering Date: Fri, 3 Jan 2020 17:25:51 +0000 (+0100) Subject: test: hardcode shell to use X-Git-Tag: v245-rc1~120^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=519b2e521214c14e77ff8086a4c9de0a68599317;p=thirdparty%2Fsystemd.git test: hardcode shell to use let's make sure we always invoke our commands through /bin/sh, since on some distros su will use /bin/nologin (or whatever is listed in /etc/passwd) as shell otherwise and we don#t want that. --- diff --git a/test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh b/test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh index cd61dc95c95..158889888ef 100755 --- a/test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh +++ b/test/TEST-43-PRIVATEUSER-UNPRIV/testsuite.sh @@ -7,7 +7,7 @@ systemd-analyze log-level debug runas() { declare userid=$1 shift - su "$userid" -c 'XDG_RUNTIME_DIR=/run/user/$UID "$@"' -- sh "$@" + su "$userid" -s /bin/sh -c 'XDG_RUNTIME_DIR=/run/user/$UID exec "$@"' -- sh "$@" } runas nobody systemctl --user --wait is-system-running