Merge pull request #137936 from r-burns/ccache

ccache: disable flaky test
This commit is contained in:
figsoda 2021-09-16 08:09:43 -04:00 committed by GitHub
commit 23d26b0338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
'';