From f38d014b8779bacbe72b930716f61fbdf7e032b8 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Tue, 14 Sep 2021 17:38:01 -0700 Subject: [PATCH] ccache: disable flaky test test.trim_dir has transient failures, currently assumed to be filesystem-specific as it fails on Linux systems using ZFS and on macOS (HFS+). --- pkgs/development/tools/misc/ccache/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/misc/ccache/default.nix b/pkgs/development/tools/misc/ccache/default.nix index 018e65754d9d..a6fbacfa6f16 100644 --- a/pkgs/development/tools/misc/ccache/default.nix +++ b/pkgs/development/tools/misc/ccache/default.nix @@ -60,12 +60,18 @@ let ccache = stdenv.mkDerivation rec { bashInteractive ] ++ lib.optional stdenv.isDarwin xcodebuild; - checkPhase = '' + checkPhase = let + badTests = [ + "test.trim_dir" # flaky on hydra (possibly filesystem-specific?) + ] ++ lib.optionals stdenv.isDarwin [ + "test.basedir" + "test.multi_arch" + "test.nocpp2" + ]; + in '' runHook preCheck export HOME=$(mktemp -d) - ctest --output-on-failure ${lib.optionalString stdenv.isDarwin '' - -E '^(test.nocpp2|test.basedir|test.multi_arch|test.trim_dir)$' - ''} + ctest --output-on-failure -E '^(${lib.concatStringsSep "|" badTests})$' runHook postCheck '';