Skip to content

Commit

Permalink
tests: fix impurity of _module.args.pkgsPath
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee authored and rycee committed Jul 9, 2022
1 parent 8160b3b commit 8d5b07f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ let
check = false;
} ++ [
{
# Bypass <nixpkgs> reference inside modules/modules.nix to make the test
# suite more pure.
_module.args.pkgsPath = pkgs.path;

# Fix impurities. Without these some of the user's environment
# will leak into the tests through `builtins.getEnv`.
xdg.enable = true;
Expand Down

0 comments on commit 8d5b07f

Please sign in to comment.