From a6d6568338335184e339efe2a5f7d6a8da9cd8c2 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 9 Jan 2023 00:08:00 -0800 Subject: [PATCH] coreutils: disable tests which fail in the sandbox (no uid==1000) Several coreutils tests assume there exists a user with uid=1000. We need to disable these tests in the sandbox. --- pkgs/tools/misc/coreutils/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index a89621e8fe5f8..256205ecc1e27 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -70,6 +70,11 @@ stdenv.mkDerivation rec { for f in ./tests/chgrp/{basic.sh,recurse.sh,default-no-deref.sh,no-x.sh,posix-H.sh}; do sed '2i echo Skipping chgrp && exit 77' -i "$f" done + for f in ./tests/id/{uid.sh,zero.sh}; do + sed '2i echo Skipping tests/id && exit 77' -i "$f" + done + sed '2i echo Skipping tests/misc && exit 77' -i "tests/misc/help-version.sh" + sed '2i echo Skipping chown && exit 77' -i "tests/chown/separator.sh" for f in gnulib-tests/{test-chown.c,test-fchownat.c,test-lchown.c}; do echo "int main() { return 77; }" > "$f" done