From a351f03c86034c7ed6201b84b47fe2b8ed8dc1bf Mon Sep 17 00:00:00 2001 From: Tobias Mayer Date: Sun, 9 Nov 2025 19:07:48 +0100 Subject: [PATCH] logrotate: skip breaking tests --- pkgs/by-name/lo/logrotate/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/lo/logrotate/package.nix b/pkgs/by-name/lo/logrotate/package.nix index 9db688ab8ac1..70642b44ef13 100644 --- a/pkgs/by-name/lo/logrotate/package.nix +++ b/pkgs/by-name/lo/logrotate/package.nix @@ -33,8 +33,12 @@ stdenv.mkDerivation rec { preCheck = '' sed -i 's#/bin/date#${lib.getExe' coreutils "date"}#' test/*.sh - # Skip this test because it depends on a working root user, which we don't have in the sandbox - # Exiting with 77 signals that the test is skipped, and we only place it on line 2 because the shebang is on line 1 + # Exiting with 77 signals that a test is skipped, and we only place it on line 2 because the shebang is on line 1 + # Does not work on certain filesystems due to incorrect sparse file detection. + # Upstream issue: https://github.com/logrotate/logrotate/issues/682 + sed -i '2iexit 77' test/test-0062.sh + sed -i '2iexit 77' test/test-0063.sh + # Depends on a working root user, which we don't have in the sandbox sed -i '2iexit 77' test/test-0110.sh ''; doCheck = true;