Merge pull request #137936 from r-burns/ccache
ccache: disable flaky test
This commit is contained in:
commit
23d26b0338
1 changed files with 10 additions and 4 deletions
|
@ -60,12 +60,18 @@ let ccache = stdenv.mkDerivation rec {
|
||||||
bashInteractive
|
bashInteractive
|
||||||
] ++ lib.optional stdenv.isDarwin xcodebuild;
|
] ++ 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
|
runHook preCheck
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
ctest --output-on-failure ${lib.optionalString stdenv.isDarwin ''
|
ctest --output-on-failure -E '^(${lib.concatStringsSep "|" badTests})$'
|
||||||
-E '^(test.nocpp2|test.basedir|test.multi_arch|test.trim_dir)$'
|
|
||||||
''}
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue