From 3a95a22230edf5fe036e8aa063220caca6cdcbe5 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Sun, 3 Nov 2024 16:43:11 +0100 Subject: [PATCH] keydb: skip flaky "Active defrag edge case" test --- pkgs/by-name/ke/keydb/package.nix | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/ke/keydb/package.nix b/pkgs/by-name/ke/keydb/package.nix index ed6ba8bd518c..2a4300b842f0 100644 --- a/pkgs/by-name/ke/keydb/package.nix +++ b/pkgs/by-name/ke/keydb/package.nix @@ -84,12 +84,23 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs ./utils/gen-test-certs.sh ${if tlsSupport then "./utils/gen-test-certs.sh" else ""} - - ./runtest \ - --no-latency \ - --timeout 2000 \ - --clients $NIX_BUILD_CORES \ - --tags -leaks ${if tlsSupport then "--tls" else ""} + ./runtest --clients $NIX_BUILD_CORES ${ + lib.escapeShellArgs ( + [ + "--no-latency" + "--timeout" + "2000" + "--tags" + "-leaks" + ] + ++ lib.optional tlsSupport "--tls" + # skips flaky test on x86_64 + ++ lib.optionals stdenv.hostPlatform.isx86_64 [ + "--skiptest" + "Active defrag edge case" + ] + ) + } runHook postCheck '';