Skip to content

Commit

Permalink
tests.nixpkgs-check-by-name: Fix non-reproducible test failures
Browse files Browse the repository at this point in the history
This was an oversight in NixOS#254435
  • Loading branch information
infinisil committed Sep 22, 2023
1 parent 5176fa7 commit 1fe58cb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/test/nixpkgs-check-by-name/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ let
export NIX_STATE_DIR=$TEST_ROOT/var/nix
export NIX_STORE_DIR=$TEST_ROOT/store
# cargo tests run in parallel by default, which would then run into
# https://github.com/NixOS/nix/issues/2706 unless the store is initialised first
# Ensure that even if tests run in parallel, we don't get an error
# We'd run into https://github.com/NixOS/nix/issues/2706 unless the store is initialised first
nix-store --init
'';
# The tests use the shared environment variables,
# so we cannot run them in parallel
dontUseCargoParallelTests = true;
postCheck = ''
cargo fmt --check
cargo clippy -- -D warnings
Expand Down

0 comments on commit 1fe58cb

Please sign in to comment.