delta: run tests with 1 thread

One of the tests (test_env_parsing_with_pager_set_to_bat) sets an
environment variable, which can be flaky with multiple threads (see
https://github.com/dandavison/delta/issues/1660). Work around this by
running the tests with 1 thread until this is fixed upstream.
This commit is contained in:
Alex James 2024-04-21 15:10:20 -05:00
parent 4854bac6d7
commit 9cb8feca8c
No known key found for this signature in database
GPG Key ID: 4729B829AC5FCC72
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ rustPlatform.buildRustPackage rec {
etc/completion/completion.{bash,fish,zsh}
'';
# test_env_parsing_with_pager_set_to_bat sets environment variables,
# which can be flaky with multiple threads:
# https://github.com/dandavison/delta/issues/1660
dontUseCargoParallelTests = true;
checkFlags = lib.optionals stdenv.isDarwin [
"--skip=test_diff_same_non_empty_file"
];