From 8d5b07fc83d579cd196125e698454b4eb4850646 Mon Sep 17 00:00:00 2001 From: Shamrock Lee <44064051+ShamrockLee@users.noreply.github.com> Date: Wed, 15 Jun 2022 00:38:44 +0800 Subject: [PATCH] tests: fix impurity of _module.args.pkgsPath --- tests/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/default.nix b/tests/default.nix index 9066f0518..42a96579c 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -15,6 +15,10 @@ let check = false; } ++ [ { + # Bypass 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;