desync: enable tests (take 2)

It turns out more tests fail on ZFS.
This commit is contained in:
Artem Leshchev
2026-02-03 17:02:24 -06:00
parent 30154124f0
commit 21bd9e9160
+23 -2
View File
@@ -21,8 +21,29 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
# nix builder doesn't have access to test data; tests fail for reasons unrelated to binary being bad.
doCheck = false;
# required for TestHTTPHandlerReadWrite and other tests
__darwinAllowLocalNetworking = true;
checkFlags =
let
skippedTests = [
"TestExtract" # block cloning fails on ZFS
"TestExtractCommand/extract_while_regenerating_the_corrupted_seed" # block cloning fails on ZFS
"TestExtractCommand/extract_with_seed_directory" # block cloning fails on ZFS
"TestExtractCommand/extract_with_single_seed" # block cloning fails on ZFS
"TestExtractCommand/extract_with_single_seed,_explicit_data_directory_and_unexpected_seed_options" # block cloning fails on ZFS
"TestExtractCommand/extract_with_single_seed_and_explicit_data_directory" # block cloning fails on ZFS
"TestExtractWithNonStaticSeeds" # block cloning fails on ZFS
"TestMountIndex" # FUSE does not work in sandbox
"TestSeed/extract_repetitive_file" # block cloning fails on ZFS
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# sendfile is not permitted in Darwin sandbox
"TestS3StoreGetChunk/fail"
"TestS3StoreGetChunk/recover"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd desync \