coreutils: enable tests for non-standard store path

Tests don't fail because of a different store path, but for other reasons like
lack of sandboxing. Those tests should be disabled explicitly.
This commit is contained in:
Dmitry Kalinkin 2021-03-10 05:44:56 +03:00
parent ae64aaa5c0
commit 25f8e0cef9
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -103,8 +103,7 @@ stdenv.mkDerivation (rec {
# and {Open,Free}BSD.
# With non-standard storeDir: https://github.com/NixOS/nix/issues/512
doCheck = stdenv.hostPlatform == stdenv.buildPlatform
&& (stdenv.hostPlatform.libc == "glibc" || stdenv.hostPlatform.isMusl)
&& builtins.storeDir == "/nix/store";
&& (stdenv.hostPlatform.libc == "glibc" || stdenv.hostPlatform.isMusl);
# Prevents attempts of running 'help2man' on cross-built binaries.
PERL = if stdenv.hostPlatform == stdenv.buildPlatform then null else "missing";