Merge #99437: p11-kit: fix tests when non-root

This commit is contained in:
Vladimír Čunát 2020-10-18 11:28:05 +02:00
commit f42d36d588
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -36,6 +36,13 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# Tests run in fakeroot for non-root users
preCheck = ''
if [ "$(id -u)" != "0" ]; then
export FAKED_MODE=1
fi
'';
doCheck = !stdenv.isDarwin;
installFlags = [